wasm-loader

Home > @playerony/wasm-loader > TWasmFetcher

TWasmFetcher type

Asynchronously instantiates an AssemblyScript module from anything that can be instantiated.

Signature:

export declare type TWasmFetcher = <T extends Record<string, unknown>>(
  path: string,
  imports?: TImports,
) => Promise<loader.ASUtil & T>;

References: TImports