Package-level declarations

Types

Link copied to clipboard
external class CompileError(message: String = definedExternally) : Throwable
Link copied to clipboard
Link copied to clipboard
typealias ExportValue = Any
Link copied to clipboard
open external class Global<T>(descriptor: GlobalDescriptor<T>, v: T = definedExternally)
Link copied to clipboard
external interface GlobalDescriptor<T>
Link copied to clipboard
sealed external interface ImportExportKind
Link copied to clipboard
Link copied to clipboard
typealias ImportValue = Any
Link copied to clipboard
open external class Instance(module: Module, importObject: Imports = definedExternally)
Link copied to clipboard
external class LinkError(message: String = definedExternally) : Throwable
Link copied to clipboard
open external class Memory(descriptor: MemoryDescriptor)
Link copied to clipboard
external interface MemoryDescriptor
Link copied to clipboard
open external class Module(bytes: BufferSource)
Link copied to clipboard
external interface ModuleExportDescriptor
Link copied to clipboard
external interface ModuleImportDescriptor
Link copied to clipboard
Link copied to clipboard
external class RuntimeError(message: String = definedExternally) : Throwable
Link copied to clipboard
open external class Table(descriptor: TableDescriptor, value: Any? = definedExternally)
Link copied to clipboard
external interface TableDescriptor
Link copied to clipboard
sealed external interface TableKind
Link copied to clipboard
sealed external interface ValueType<T>
Link copied to clipboard

Functions

Link copied to clipboard
suspend external fun compile(bytes: BufferSource): Module
Link copied to clipboard
external fun compileAsync(bytes: BufferSource): Promise<Module>
Link copied to clipboard
suspend external fun compileStreaming(source: PromiseLike<Response>): Module

suspend external fun compileStreaming(source: Response): Module
Link copied to clipboard
Link copied to clipboard
suspend external fun instantiate(bytes: BufferSource, importObject: Imports = definedExternally): WebAssemblyInstantiatedSource
suspend external fun instantiate(moduleObject: Module, importObject: Imports = definedExternally): Instance
Link copied to clipboard
external fun instantiateAsync(bytes: BufferSource, importObject: Imports = definedExternally): Promise<WebAssemblyInstantiatedSource>
external fun instantiateAsync(moduleObject: Module, importObject: Imports = definedExternally): Promise<Instance>
Link copied to clipboard
suspend external fun instantiateStreaming(source: PromiseLike<Response>, importObject: Imports = definedExternally): WebAssemblyInstantiatedSource

suspend external fun instantiateStreaming(source: Response, importObject: Imports = definedExternally): WebAssemblyInstantiatedSource
Link copied to clipboard
external fun instantiateStreamingAsync(source: PromiseLike<Response>, importObject: Imports = definedExternally): Promise<WebAssemblyInstantiatedSource>
external fun instantiateStreamingAsync(source: Response, importObject: Imports = definedExternally): Promise<WebAssemblyInstantiatedSource>
Link copied to clipboard