0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-28 14:33:11 +01:00
nodejs/typings/internalBinding/wasi.d.ts

15 lines
350 B
TypeScript
Raw 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;
}