pub type JSModuleLoaderFetch = Option<unsafe extern "C" fn(ctx: JSContextRef, key: JSValueRef, attributesValue: JSValueRef, scriptFetcher: JSValueRef) -> JSStringRef>;Expand description
@typedef JSModuleLoaderFetch @abstract The callback invoked when fetching a module. @param ctx The execution context to use. @param key A JSValue containing the module specifier to fetch. @param attributesValue A JSValue containing the attributes. @param scriptFetcher A JSValue containing the script fetcher. @result A JSStringRef containing the fetched module.
Aliased Type§
pub enum JSModuleLoaderFetch {
None,
Some(unsafe extern "C" fn(*const OpaqueJSContext, *const OpaqueJSValue, *const OpaqueJSValue, *const OpaqueJSValue) -> *mut OpaqueJSString),
}Variants§
None
No value.
Some(unsafe extern "C" fn(*const OpaqueJSContext, *const OpaqueJSValue, *const OpaqueJSValue, *const OpaqueJSValue) -> *mut OpaqueJSString)
Some value of type T.