mirror of
https://github.com/nodejs/node.git
synced 2024-11-28 14:33:11 +01:00
15 lines
350 B
TypeScript
15 lines
350 B
TypeScript
|
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;
|
||
|
}
|
||
|
|