You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: transform_html.rs
    path of file: ./repos/farm/crates/node/src/plugin_adapters/js_plugin_adapter/hooks
    
    the code of the file until where you have to start completion: //! This hook is only JS plugin hook, it's to be compatible with Vite's `transformIndexHtml` hook in dev mode.
//! It's used to transform the HTML content of the `.html` file.

use std::sync::Ar
    
  pub fn new(env: &napi::Env, obj: napi::JsObject) -> Self {
    let func = obj
      .get_named_property::<napi::JsFunction>("executor")
      .expect("executor should be checked in js side");

    Self {
      tsfn: ThreadSafeJsPluginHook::new::<JsPluginTransformHtmlHookParams, Resource>(env, func),
    }
  }