Options
All
  • Public
  • Public/Protected
  • All
Menu

Module WebAssembly

Package version

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: { constructor: any; prototype: CompileError }

Type declaration

  • constructor: function
    • Returns CompileError

  • prototype: CompileError

Global

Global: { constructor: any; prototype: Global }

Type declaration

  • constructor: function
    • Parameters

      Returns Global

  • prototype: Global

Instance

Instance: { constructor: any; prototype: Instance }

Type declaration

  • constructor: function
    • Parameters

      Returns Instance

  • prototype: Instance

LinkError

LinkError: { constructor: any; prototype: LinkError }

Type declaration

  • constructor: function
    • Returns LinkError

  • prototype: LinkError

Memory

Memory: { constructor: any; prototype: Memory }

Type declaration

  • constructor: function
    • Parameters

      Returns Memory

  • prototype: Memory

Module

Module: { constructor: any; prototype: Module; customSections: any; exports: any; imports: any }

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: { constructor: any; prototype: RuntimeError }

Type declaration

  • constructor: function
    • Returns RuntimeError

  • prototype: RuntimeError

Table

Table: { constructor: any; prototype: Table }

Type declaration

  • constructor: function
    • Parameters

      Returns Table

  • prototype: Table

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