@types/node
Advanced tools
Comparing version 16.18.90 to 16.18.91
{ | ||
"name": "@types/node", | ||
"version": "16.18.90", | ||
"version": "16.18.91", | ||
"description": "TypeScript definitions for node", | ||
@@ -213,4 +213,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "aa9c14fcc25efc459c4ff74300efccbebda4f58f09560cf5e9afd66f72e92ddf", | ||
"typesPublisherContentHash": "92fd7729a47248dde8fef2f4a8373168ca8c7f810dba9cd2a7e0088f69248bb7", | ||
"typeScriptVersion": "4.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 18 Mar 2024 19:35:28 GMT | ||
* Last updated: Tue, 19 Mar 2024 12:41:20 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ |
@@ -6,5 +6,5 @@ /** | ||
* ```js | ||
* import { readFile } from 'fs/promises'; | ||
* import { readFile } from 'node:fs/promises'; | ||
* import { WASI } from 'wasi'; | ||
* import { argv, env } from 'process'; | ||
* import { argv, env } from 'node:process'; | ||
* | ||
@@ -31,3 +31,3 @@ * const wasi = new WASI({ | ||
* | ||
* To run the above example, create a new WebAssembly text format file named`demo.wat`: | ||
* To run the above example, create a new WebAssembly text format file named `demo.wat`: | ||
* | ||
@@ -73,3 +73,3 @@ * ```text | ||
* @experimental | ||
* @see [source](https://github.com/nodejs/node/blob/v16.9.0/lib/wasi.js) | ||
* @see [source](https://github.com/nodejs/node/blob/v16.20.2/lib/wasi.js) | ||
*/ | ||
@@ -82,2 +82,3 @@ declare module "wasi" { | ||
* WASI command itself. | ||
* @default [] | ||
*/ | ||
@@ -88,2 +89,3 @@ args?: string[] | undefined; | ||
* application will see as its environment. | ||
* @default {} | ||
*/ | ||
@@ -125,3 +127,3 @@ env?: object | undefined; | ||
* methods for working with WASI-based applications. Each `WASI` instance | ||
* represents a distinct sandbox environment. For security purposes, each `WASI`instance must have its command-line arguments, environment variables, and | ||
* represents a distinct sandbox environment. For security purposes, each `WASI` instance must have its command-line arguments, environment variables, and | ||
* sandbox directory structure configured explicitly. | ||
@@ -133,6 +135,6 @@ * @since v13.3.0, v12.16.0 | ||
/** | ||
* Attempt to begin execution of `instance` as a WASI command by invoking its`_start()` export. If `instance` does not contain a `_start()` export, or if`instance` contains an `_initialize()` | ||
* Attempt to begin execution of `instance` as a WASI command by invoking its `_start()` export. If `instance` does not contain a `_start()` export, or if `instance` contains an `_initialize()` | ||
* export, then an exception is thrown. | ||
* | ||
* `start()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named`memory`. If | ||
* `start()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named `memory`. If | ||
* `instance` does not have a `memory` export an exception is thrown. | ||
@@ -145,5 +147,5 @@ * | ||
/** | ||
* Attempt to initialize `instance` as a WASI reactor by invoking its`_initialize()` export, if it is present. If `instance` contains a `_start()`export, then an exception is thrown. | ||
* Attempt to initialize `instance` as a WASI reactor by invoking its `_initialize()` export, if it is present. If `instance` contains a `_start()` export, then an exception is thrown. | ||
* | ||
* `initialize()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named`memory`. | ||
* `initialize()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named `memory`. | ||
* If `instance` does not have a `memory` export an exception is thrown. | ||
@@ -150,0 +152,0 @@ * |
1791322
40240