Optional
allowedOptional
allowedOptional
configOptional
enableWhether WASI stdout should be forwarded to the host.
Overrides the EXTISM_ENABLE_WASI_OUTPUT
environment variable.
Optional
fetchOptional
init: RequestInitOptional
init: RequestInitOptional
functionsA map of namespaces to function names to host functions.
const functions = {
'my_great_namespace': {
'my_func': (callContext: CallContext, input: bigint) => {
const output = callContext.read(input);
if (output !== null) {
console.log(output.string());
}
}
}
}
Rest
...args: any[]Optional
loggerA logger implementation. Must provide info
, debug
, warn
, and error
methods.
Optional
Experimental
runWhether or not to run the Wasm module in a Worker thread. Requires
CAPABILITIES.hasWorkerCapability
to
be true. Defaults to false.
This feature is marked experimental as we work out a bug.
Optional
sharedOptional
useWhether or not to enable WASI preview 1.
Generated using TypeDoc
Options for initializing an Extism plugin.