Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

ExportValue

ExportValue: Function | Global | Memory | Table

Exports

Exports: Record<string, ExportValue>

ImportExportKind

ImportExportKind: "function" | "table" | "memory" | "global"

ImportValue

ImportValue: ExportValue | number

Imports

Imports: Record<string, ModuleImports>

ModuleImports

ModuleImports: Record<string, ImportValue>

TableKind

TableKind: "anyfunc"

ValueType

ValueType: "i32" | "i64" | "f32" | "f64"

Variables

CompileError

CompileError: object

Type declaration

Global

Global: object

Type declaration

Instance

Instance: object

Type declaration

  • constructor: function
    • Parameters

      Returns Instance

  • prototype: Instance

LinkError

LinkError: object

Type declaration

  • constructor: function
    • Returns LinkError

  • prototype: LinkError

Memory

Memory: object

Type declaration

Module

Module: object

Type declaration

  • constructor: function
    • Parameters

      Returns Module

  • prototype: Module
  • customSections: function
    • customSections(moduleObject: Module, sectionName: string): ArrayBuffer[]
    • Parameters

      • moduleObject: Module
      • sectionName: string

      Returns ArrayBuffer[]

  • exports: function
    • Parameters

      Returns ModuleExportDescriptor[]

  • imports: function
    • Parameters

      Returns ModuleImportDescriptor[]

RuntimeError

RuntimeError: object

Type declaration

Table

Table: object

Type declaration

Functions

compile

  • Parameters

    Returns Promise<Module>

compileStreaming

  • Parameters

    Returns Promise<Module>

instantiate

  • Parameters

    Returns Promise<WebAssemblyInstantiatedSource>

  • Parameters

    Returns Promise<Instance>

instantiateStreaming

validate

  • Parameters

    Returns boolean

Generated using TypeDoc