@types/node 20.11.6 → 20.11.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- node/README.md +1 -1
- node/package.json +2 -2
- node/string_decoder.d.ts +2 -2
- node/ts4.8/string_decoder.d.ts +2 -2
- node/ts4.8/wasi.d.ts +17 -0
- node/wasi.d.ts +17 -0
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 26 Jan 2024 04:36:02 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.11.
|
|
3
|
+
"version": "20.11.7",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"dependencies": {
|
|
225
225
|
"undici-types": "~5.26.4"
|
|
226
226
|
},
|
|
227
|
-
"typesPublisherContentHash": "
|
|
227
|
+
"typesPublisherContentHash": "237ecca2085f864d34f9776f133b6ea5e8b756ea9d33ca3479aa905317ed6e65",
|
|
228
228
|
"typeScriptVersion": "4.6",
|
|
229
229
|
"nonNpm": true
|
|
230
230
|
}
|
node/string_decoder.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ declare module "string_decoder" {
|
|
|
48
48
|
* @since v0.1.99
|
|
49
49
|
* @param buffer The bytes to decode.
|
|
50
50
|
*/
|
|
51
|
-
write(buffer: Buffer): string;
|
|
51
|
+
write(buffer: string | Buffer | NodeJS.ArrayBufferView): string;
|
|
52
52
|
/**
|
|
53
53
|
* Returns any remaining input stored in the internal buffer as a string. Bytes
|
|
54
54
|
* representing incomplete UTF-8 and UTF-16 characters will be replaced with
|
|
@@ -59,7 +59,7 @@ declare module "string_decoder" {
|
|
|
59
59
|
* @since v0.9.3
|
|
60
60
|
* @param buffer The bytes to decode.
|
|
61
61
|
*/
|
|
62
|
-
end(buffer?: Buffer): string;
|
|
62
|
+
end(buffer?: string | Buffer | NodeJS.ArrayBufferView): string;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
declare module "node:string_decoder" {
|
node/ts4.8/string_decoder.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ declare module "string_decoder" {
|
|
|
48
48
|
* @since v0.1.99
|
|
49
49
|
* @param buffer The bytes to decode.
|
|
50
50
|
*/
|
|
51
|
-
write(buffer: Buffer): string;
|
|
51
|
+
write(buffer: string | Buffer | NodeJS.ArrayBufferView): string;
|
|
52
52
|
/**
|
|
53
53
|
* Returns any remaining input stored in the internal buffer as a string. Bytes
|
|
54
54
|
* representing incomplete UTF-8 and UTF-16 characters will be replaced with
|
|
@@ -59,7 +59,7 @@ declare module "string_decoder" {
|
|
|
59
59
|
* @since v0.9.3
|
|
60
60
|
* @param buffer The bytes to decode.
|
|
61
61
|
*/
|
|
62
|
-
end(buffer?: Buffer): string;
|
|
62
|
+
end(buffer?: string | Buffer | NodeJS.ArrayBufferView): string;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
declare module "node:string_decoder" {
|
node/ts4.8/wasi.d.ts
CHANGED
|
@@ -127,6 +127,23 @@ declare module "wasi" {
|
|
|
127
127
|
*/
|
|
128
128
|
class WASI {
|
|
129
129
|
constructor(options?: WASIOptions);
|
|
130
|
+
/**
|
|
131
|
+
* Return an import object that can be passed to `WebAssembly.instantiate()` if no other WASM imports are needed beyond those provided by WASI.
|
|
132
|
+
*
|
|
133
|
+
* If version `unstable` was passed into the constructor it will return:
|
|
134
|
+
*
|
|
135
|
+
* ```js
|
|
136
|
+
* { wasi_unstable: wasi.wasiImport }
|
|
137
|
+
* ```
|
|
138
|
+
*
|
|
139
|
+
* If version `preview1` was passed into the constructor or no version was specified it will return:
|
|
140
|
+
*
|
|
141
|
+
* ```js
|
|
142
|
+
* { wasi_snapshot_preview1: wasi.wasiImport }
|
|
143
|
+
* ```
|
|
144
|
+
* @since v19.8.0
|
|
145
|
+
*/
|
|
146
|
+
getImportObject(): object;
|
|
130
147
|
/**
|
|
131
148
|
* 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()`
|
|
132
149
|
* export, then an exception is thrown.
|
node/wasi.d.ts
CHANGED
|
@@ -127,6 +127,23 @@ declare module "wasi" {
|
|
|
127
127
|
*/
|
|
128
128
|
class WASI {
|
|
129
129
|
constructor(options?: WASIOptions);
|
|
130
|
+
/**
|
|
131
|
+
* Return an import object that can be passed to `WebAssembly.instantiate()` if no other WASM imports are needed beyond those provided by WASI.
|
|
132
|
+
*
|
|
133
|
+
* If version `unstable` was passed into the constructor it will return:
|
|
134
|
+
*
|
|
135
|
+
* ```js
|
|
136
|
+
* { wasi_unstable: wasi.wasiImport }
|
|
137
|
+
* ```
|
|
138
|
+
*
|
|
139
|
+
* If version `preview1` was passed into the constructor or no version was specified it will return:
|
|
140
|
+
*
|
|
141
|
+
* ```js
|
|
142
|
+
* { wasi_snapshot_preview1: wasi.wasiImport }
|
|
143
|
+
* ```
|
|
144
|
+
* @since v19.8.0
|
|
145
|
+
*/
|
|
146
|
+
getImportObject(): object;
|
|
130
147
|
/**
|
|
131
148
|
* 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()`
|
|
132
149
|
* export, then an exception is thrown.
|