@types/node 18.0.5 → 18.0.6
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/stream.d.ts +28 -0
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (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: Sun, 17 Jul 2022 21:02:29 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.6",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
},
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "66f1b140a3a1f77d215036a5818c51674db9998bb96d0ae9b251d09f2825200e",
|
|
224
224
|
"typeScriptVersion": "4.0"
|
|
225
225
|
}
|
node/stream.d.ts
CHANGED
|
@@ -126,6 +126,16 @@ declare module 'stream' {
|
|
|
126
126
|
* @since v18.0.0
|
|
127
127
|
*/
|
|
128
128
|
destroyed: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Is true after 'close' has been emitted.
|
|
131
|
+
* @since v8.0.0
|
|
132
|
+
*/
|
|
133
|
+
readonly closed: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Returns error if the stream has been destroyed with an error.
|
|
136
|
+
* @since v18.0.0
|
|
137
|
+
*/
|
|
138
|
+
readonly errored: Error | null;
|
|
129
139
|
constructor(opts?: ReadableOptions);
|
|
130
140
|
_construct?(callback: (error?: Error | null) => void): void;
|
|
131
141
|
_read(size: number): void;
|
|
@@ -554,6 +564,21 @@ declare module 'stream' {
|
|
|
554
564
|
* @since v8.0.0
|
|
555
565
|
*/
|
|
556
566
|
destroyed: boolean;
|
|
567
|
+
/**
|
|
568
|
+
* Is true after 'close' has been emitted.
|
|
569
|
+
* @since v8.0.0
|
|
570
|
+
*/
|
|
571
|
+
readonly closed: boolean;
|
|
572
|
+
/**
|
|
573
|
+
* Returns error if the stream has been destroyed with an error.
|
|
574
|
+
* @since v18.0.0
|
|
575
|
+
*/
|
|
576
|
+
readonly errored: Error | null;
|
|
577
|
+
/**
|
|
578
|
+
* Is `true` if the stream's buffer has been full and stream will emit 'drain'.
|
|
579
|
+
* @since v15.2.0, v14.17.0
|
|
580
|
+
*/
|
|
581
|
+
readonly writableNeedDrain: boolean;
|
|
557
582
|
constructor(opts?: WritableOptions);
|
|
558
583
|
_write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
559
584
|
_writev?(
|
|
@@ -820,6 +845,9 @@ declare module 'stream' {
|
|
|
820
845
|
readonly writableLength: number;
|
|
821
846
|
readonly writableObjectMode: boolean;
|
|
822
847
|
readonly writableCorked: number;
|
|
848
|
+
readonly writableNeedDrain: boolean;
|
|
849
|
+
readonly closed: boolean;
|
|
850
|
+
readonly errored: Error | null;
|
|
823
851
|
/**
|
|
824
852
|
* If `false` then the stream will automatically end the writable side when the
|
|
825
853
|
* readable side ends. Set initially by the `allowHalfOpen` constructor option,
|