-
-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathbrowser.d.ts
More file actions
18 lines (16 loc) · 719 Bytes
/
browser.d.ts
File metadata and controls
18 lines (16 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import type { InstantiateOptions, ModuleSource/* #if HAS_IMPORTS */, Imports/* #endif */ } from "../instantiate.js"
export function defaultBrowserSetup(options: {
module: ModuleSource,
/* #if IS_WASI */
args?: string[],
onStdoutLine?: (line: string) => void,
onStderrLine?: (line: string) => void,
/* #endif */
/* #if HAS_IMPORTS */
getImports: () => Imports,
/* #endif */
/* #if USE_SHARED_MEMORY */
spawnWorker?: (module: WebAssembly.Module, memory: WebAssembly.Memory, startArg: any) => Worker,
/* #endif */
}): Promise<InstantiateOptions>
export function createDefaultWorkerFactory(preludeScript?: string): (module: WebAssembly.Module, memory: WebAssembly.Memory, startArg: any) => Worker