mirror of
https://github.com/nodejs/node.git
synced 2024-11-22 07:37:56 +01:00
c890a9660c
PR-URL: https://github.com/nodejs/node/pull/54119 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
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;
|
|
}
|
|
|