Function: initAsync()
function initAsync(input?): Promise<void>;
Load and initialize the WASM module.
Parameters
input?
string | URL | ArrayBuffer | Uint8Array<ArrayBufferLike>
One of:
stringorURL: location of the.wasmbinary to fetch (browser).ArrayBufferorUint8Array: raw.wasmbytes (Node.js, wherefetch('file://…')isn't reliably supported — passfs.readFileSync(...)instead).- omitted: defaults to
index_bg.wasmresolved relative to this JS module.
Returns
Promise<void>