0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-24 20:29:23 +01:00
nodejs/typings/internalBinding/wasi.d.ts

15 lines
350 B
TypeScript
Raw Permalink Normal View History

declare namespace InternalWASIBinding {
type EnvStr = `${string}=${string}`
class WASI {
constructor(args: string[], env: EnvStr[], preopens: string[], stdio: [stdin: number, stdout: number, stderr: number])
_setMemory(memory: WebAssembly.Memory): void;
}
}
export interface WASIBinding {
WASI: typeof InternalWASIBinding.WASI;
}