@audiotool/nexus - v0.0.17
    Preparing search index...

    Type Alias WasmLoader

    Interface for loading WASM modules required by the SDK.

    The SDK needs two files:

    • wasm_exec.js: Go's WASM runtime support
    • document_validator.wasm: The compiled validator

    Different environments load these differently:

    • Browser: fetch from URL (configured via VITE_WASM_ASSETS_PREFIX)
    • Node.js/Bun/Deno: load from disk using node:fs
    type WasmLoader = {
        executeRuntime(): Promise<void>;
        loadModule(): Promise<Module>;
    }
    Index

    Methods

    • Execute the Go WASM runtime JS wrapper. This must attach Go constructor to globalThis.

      Returns Promise<void>