Type Alias JSModuleLoaderFunc

Source
pub type JSModuleLoaderFunc = Box<dyn Fn(&str, *mut c_void) -> Result<String>>;
Expand description

Custom module loader function, passes (module_name, opaque) and returns module code If the module code is not found, return None

Aliased Typeยง

pub struct JSModuleLoaderFunc(/* private fields */);