Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Type Alias WasmShimModule

    WasmShimModule: { default: (moduleOrPath?: unknown) => Promise<unknown> } & Record<
        string,
        unknown,
    >

    The wasm-bindgen JS shim's namespace, as far as the loader cares: a default() that instantiates the binary, plus the per-kernel wrappers assertRequiredWasmExports inspects by name. Exported because it is importFirstWasmShim's return type — a private alias in a public signature trips the TypeDoc warning ratchet.

    Type Declaration

    • default: (moduleOrPath?: unknown) => Promise<unknown>

      wasm-bindgen's __wbg_init. Takes no argument in the common case; a { module_or_path } object (or a bare WebAssembly.Module) hands it an already-compiled binary to instantiate — see instantiateWasmShim.