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
Andrew Moon c890a9660c
typings: provide internal types for wasi bindings
PR-URL: https://github.com/nodejs/node/pull/54119
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
2024-08-24 16:59:17 +00:00

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;
}