UNPKG

wasmrs-js

Version:

A JavaScript implementation of the RSocket protocol over WebAssembly.

22 lines (21 loc) 620 B
export interface WasiInterface { start(instance: object): void; initialize(instance: object): void; getImports(): WebAssembly.ModuleImports; } export type Wasi = { create(options: WasiOptions): Promise<WasiInterface>; }; export type WasiOptions = WasiV1Options; export declare enum WasiVersions { SnapshotPreview1 = "preview1" } export interface WasiV1Options { version: WasiVersions.SnapshotPreview1; args?: string[]; env?: Record<string, string>; preopens?: Record<string, string>; stdin?: number | undefined; stdout?: number | undefined; stderr?: number | undefined; }