Skip to content

WasmInstance<TExports>

An instantiated module with typed exports.

Import:

import type { WasmInstance } from '@mnaoumov/obsidian-lib/wasm';

Signature:

export interface WasmInstance<TExports extends WebAssembly.Exports>

Properties

PropertyTypeDescription
exportsTExportsThe instance's exports.
instanceWebAssembly.InstanceThe instance.
moduleWebAssembly.ModuleThe compiled module, reusable for more instances and passable to a worker.

Links to this page: