@types/node 17.0.5 → 17.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/globals.d.ts +3 -3
- node/http.d.ts +1 -1
- node/http2.d.ts +3 -3
- node/net.d.ts +3 -3
- node/package.json +2 -2
- node/stream.d.ts +8 -8
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: Sat, 01 Jan 2022 14:01:34 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node/globals.d.ts
CHANGED
|
@@ -205,9 +205,9 @@ declare namespace NodeJS {
|
|
|
205
205
|
writable: boolean;
|
|
206
206
|
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
|
207
207
|
write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
|
208
|
-
end(cb?: () => void):
|
|
209
|
-
end(data: string | Uint8Array, cb?: () => void):
|
|
210
|
-
end(str: string, encoding?: BufferEncoding, cb?: () => void):
|
|
208
|
+
end(cb?: () => void): this;
|
|
209
|
+
end(data: string | Uint8Array, cb?: () => void): this;
|
|
210
|
+
end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
interface ReadWriteStream extends ReadableStream, WritableStream { }
|
node/http.d.ts
CHANGED
node/http2.d.ts
CHANGED
|
@@ -1516,9 +1516,9 @@ declare module 'http2' {
|
|
|
1516
1516
|
* is finished.
|
|
1517
1517
|
* @since v8.4.0
|
|
1518
1518
|
*/
|
|
1519
|
-
end(callback?: () => void):
|
|
1520
|
-
end(data: string | Uint8Array, callback?: () => void):
|
|
1521
|
-
end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void):
|
|
1519
|
+
end(callback?: () => void): this;
|
|
1520
|
+
end(data: string | Uint8Array, callback?: () => void): this;
|
|
1521
|
+
end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this;
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Reads out a header that has already been queued but not sent to the client.
|
|
1524
1524
|
* The name is case-insensitive.
|
node/net.d.ts
CHANGED
|
@@ -287,9 +287,9 @@ declare module 'net' {
|
|
|
287
287
|
* @param callback Optional callback for when the socket is finished.
|
|
288
288
|
* @return The socket itself.
|
|
289
289
|
*/
|
|
290
|
-
end(callback?: () => void):
|
|
291
|
-
end(buffer: Uint8Array | string, callback?: () => void):
|
|
292
|
-
end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void):
|
|
290
|
+
end(callback?: () => void): this;
|
|
291
|
+
end(buffer: Uint8Array | string, callback?: () => void): this;
|
|
292
|
+
end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this;
|
|
293
293
|
/**
|
|
294
294
|
* events.EventEmitter
|
|
295
295
|
* 1. close
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.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",
|
|
@@ -225,6 +225,6 @@
|
|
|
225
225
|
},
|
|
226
226
|
"scripts": {},
|
|
227
227
|
"dependencies": {},
|
|
228
|
-
"typesPublisherContentHash": "
|
|
228
|
+
"typesPublisherContentHash": "52cf4a429a6442fe96d94fab7f1307ea27da83a9be140e750a75be6bac1eb9c1",
|
|
229
229
|
"typeScriptVersion": "3.8"
|
|
230
230
|
}
|
node/stream.d.ts
CHANGED
|
@@ -408,7 +408,7 @@ declare module 'stream' {
|
|
|
408
408
|
* @since v8.0.0
|
|
409
409
|
* @param error Error which will be passed as payload in `'error'` event
|
|
410
410
|
*/
|
|
411
|
-
destroy(error?: Error):
|
|
411
|
+
destroy(error?: Error): this;
|
|
412
412
|
/**
|
|
413
413
|
* Event emitter
|
|
414
414
|
* The defined events on documents including:
|
|
@@ -639,9 +639,9 @@ declare module 'stream' {
|
|
|
639
639
|
* @param encoding The encoding if `chunk` is a string
|
|
640
640
|
* @param callback Callback for when the stream is finished.
|
|
641
641
|
*/
|
|
642
|
-
end(cb?: () => void):
|
|
643
|
-
end(chunk: any, cb?: () => void):
|
|
644
|
-
end(chunk: any, encoding: BufferEncoding, cb?: () => void):
|
|
642
|
+
end(cb?: () => void): this;
|
|
643
|
+
end(chunk: any, cb?: () => void): this;
|
|
644
|
+
end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
|
|
645
645
|
/**
|
|
646
646
|
* The `writable.cork()` method forces all written data to be buffered in memory.
|
|
647
647
|
* The buffered data will be flushed when either the {@link uncork} or {@link end} methods are called.
|
|
@@ -707,7 +707,7 @@ declare module 'stream' {
|
|
|
707
707
|
* @since v8.0.0
|
|
708
708
|
* @param error Optional, an error to emit with `'error'` event.
|
|
709
709
|
*/
|
|
710
|
-
destroy(error?: Error):
|
|
710
|
+
destroy(error?: Error): this;
|
|
711
711
|
/**
|
|
712
712
|
* Event emitter
|
|
713
713
|
* The defined events on documents including:
|
|
@@ -853,9 +853,9 @@ declare module 'stream' {
|
|
|
853
853
|
write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
|
|
854
854
|
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
|
|
855
855
|
setDefaultEncoding(encoding: BufferEncoding): this;
|
|
856
|
-
end(cb?: () => void):
|
|
857
|
-
end(chunk: any, cb?: () => void):
|
|
858
|
-
end(chunk: any, encoding?: BufferEncoding, cb?: () => void):
|
|
856
|
+
end(cb?: () => void): this;
|
|
857
|
+
end(chunk: any, cb?: () => void): this;
|
|
858
|
+
end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
|
|
859
859
|
cork(): void;
|
|
860
860
|
uncork(): void;
|
|
861
861
|
}
|