Hierarchy

  • AsyncWasmInstance

Constructors

Properties

_importFnResult: unknown
_instance: Instance
_wrappedExports: AsyncifyExports
_wrappedImports: Imports
_dataAddr: number = 16
_dataEnd: number = 24576
_dataStart: number = ...
requiredExports: readonly string[] = ...

Accessors

Methods

  • Parameters

    • exportFn: Function

    Returns ((...args) => Promise<any>)

      • (...args): Promise<any>
      • Parameters

        • Rest ...args: unknown[]

        Returns Promise<any>

  • Parameters

    • exports: AsyncifyExports

    Returns AsyncifyExports

  • Parameters

    • importFn: Function

    Returns ((...args) => any)

      • (...args): any
      • Parameters

        • Rest ...args: unknown[]

        Returns any

  • Parameters

    • imports: ModuleImports

    Returns ModuleImports

  • Parameters

    • config: {
          imports: Imports;
          module: Uint8Array;
          requiredExports?: readonly string[];
      }
      • imports: Imports
      • module: Uint8Array
      • Optional requiredExports?: readonly string[]

    Returns Promise<AsyncWasmInstance>

  • Parameters

    • config: {
          module: Uint8Array;
      }
      • module: Uint8Array

    Returns Memory

Generated using TypeDoc