WASIOptions
[<Interface>]
type WASIOptions =
abstract member args: string array option with get, set
abstract member env: obj option with get, set
abstract member preopens: Record<string,string option> option with get, set
abstract member returnOnExit: bool option with get, set
abstract member stderr: float option with get, set
abstract member stdin: float option with get, set
abstract member stdout: float option with get, set
abstract member version: Version with get, set
static member Create (version: Version, ?args: string array, ?env: obj, ?preopens: Record<string,string option>, ?returnOnExit: bool, ?stdin: float, ?stdout: float, ?stderr: float) : WASIOptions| Assembly | Xantham.Fable.Node |
| Attributes | [<Interface>] |
Declared inside
Version |
Properties
abstract member args: string array option with get, set
abstract member args: string array option with get, setAn array of strings that the WebAssembly application will see as command line arguments. The first argument is the virtual path to the WASI command itself.
abstract member env: obj option with get, set
abstract member env: obj option with get, setAn object similar to process.env that the WebAssembly application will see as its environment.
abstract member preopens: Record<string,string option> option with get, set
abstract member preopens: Record<string,string option> option with get, setThis object represents the WebAssembly application's sandbox directory structure. The string keys of preopens are treated as directories within the sandbox. The corresponding values in preopens are the real paths to those directories on the host machine.
abstract member returnOnExit: bool option with get, set
abstract member returnOnExit: bool option with get, setBy default, when WASI applications call __wasi_proc_exit()``wasi.start() will return with the exit code specified rather than terminatng the process. Setting this option to false will cause the Node.js process to exit with the specified exit code instead.
abstract member stderr: float option with get, set
abstract member stderr: float option with get, setThe file descriptor used as standard error in the WebAssembly application.
abstract member stdin: float option with get, set
abstract member stdin: float option with get, setThe file descriptor used as standard input in the WebAssembly application.
abstract member stdout: float option with get, set
abstract member stdout: float option with get, setThe file descriptor used as standard output in the WebAssembly application.
abstract member version: Version with get, set
abstract member version: Version with get, setThe version of WASI requested. Currently the only supported versions are 'unstable' and 'preview1'. This option is mandatory.
@since v19.8.0
Methods
static member Create (version: Version, ?args: string array, ?env: obj, ?preopens: Record<string,string option>, ?returnOnExit: bool, ?stdin: float, ?stdout: float, ?stderr: float) : WASIOptions