| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,6 +15,7 @@ import { TimersBinding } from './internalBinding/timers'; | |||
| 15 | 15 | import { TypesBinding } from './internalBinding/types'; | |
| 16 | 16 | import { URLBinding } from './internalBinding/url'; | |
| 17 | 17 | import { UtilBinding } from './internalBinding/util'; | |
| 18 | + import { WASIBinding } from './internalBinding/wasi'; | ||
| 18 | 19 | import { WorkerBinding } from './internalBinding/worker'; | |
| 19 | 20 | import { ModulesBinding } from './internalBinding/modules'; | |
| 20 | 21 | ||
@@ -50,6 +51,7 @@ interface InternalBindingMap { | |||
| 50 | 51 | types: TypesBinding; | |
| 51 | 52 | url: URLBinding; | |
| 52 | 53 | util: UtilBinding; | |
| 54 | + wasi: WASIBinding; | ||
| 53 | 55 | worker: WorkerBinding; | |
| 54 | 56 | } | |
| 55 | 57 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,14 @@ | |||
| 1 | + declare namespace InternalWASIBinding { | ||
| 2 | + type EnvStr = `${string}=${string}` | ||
| 3 | + | ||
| 4 | + class WASI { | ||
| 5 | + constructor(args: string[], env: EnvStr[], preopens: string[], stdio: [stdin: number, stdout: number, stderr: number]) | ||
| 6 | + | ||
| 7 | + _setMemory(memory: WebAssembly.Memory): void; | ||
| 8 | + } | ||
| 9 | + } | ||
| 10 | + | ||
| 11 | + export interface WASIBinding { | ||
| 12 | + WASI: typeof InternalWASIBinding.WASI; | ||
| 13 | + } | ||
| 14 | + | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments