@types/node 16.11.23 → 16.11.26
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 v16.11/README.md +1 -1
- node v16.11/http.d.ts +1 -1
- node v16.11/http2.d.ts +3 -3
- node v16.11/net.d.ts +3 -3
- node v16.11/package.json +2 -2
- node v16.11/stream/web.d.ts +2 -1
- node v16.11/stream.d.ts +8 -8
- node v16.11/url.d.ts +10 -6
node v16.11/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/v16.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Thu,
|
|
11
|
+
* Last updated: Thu, 24 Feb 2022 16:01:42 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node v16.11/http.d.ts
CHANGED
node v16.11/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 v16.11/net.d.ts
CHANGED
|
@@ -288,9 +288,9 @@ declare module 'net' {
|
|
|
288
288
|
* @param callback Optional callback for when the socket is finished.
|
|
289
289
|
* @return The socket itself.
|
|
290
290
|
*/
|
|
291
|
-
end(callback?: () => void):
|
|
292
|
-
end(buffer: Uint8Array | string, callback?: () => void):
|
|
293
|
-
end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void):
|
|
291
|
+
end(callback?: () => void): this;
|
|
292
|
+
end(buffer: Uint8Array | string, callback?: () => void): this;
|
|
293
|
+
end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this;
|
|
294
294
|
/**
|
|
295
295
|
* events.EventEmitter
|
|
296
296
|
* 1. close
|
node v16.11/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.11.
|
|
3
|
+
"version": "16.11.26",
|
|
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": "63c87af1b4a1ad18c2f2e8427d7294568469619a7c75a7a1b042fcb7439b01ce",
|
|
224
224
|
"typeScriptVersion": "3.8"
|
|
225
225
|
}
|
node v16.11/stream/web.d.ts
CHANGED
|
@@ -162,7 +162,8 @@ declare module 'stream/web' {
|
|
|
162
162
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
163
163
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
164
164
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
165
|
-
|
|
165
|
+
values(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
|
|
166
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<R>;
|
|
166
167
|
}
|
|
167
168
|
|
|
168
169
|
const ReadableStream: {
|
node v16.11/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
|
}
|
node v16.11/url.d.ts
CHANGED
|
@@ -829,17 +829,21 @@ declare module 'url' {
|
|
|
829
829
|
* https://nodejs.org/api/url.html#the-whatwg-url-api
|
|
830
830
|
* @since v10.0.0
|
|
831
831
|
*/
|
|
832
|
-
var URL:
|
|
832
|
+
var URL:
|
|
833
|
+
// For compatibility with "dom" and "webworker" URL declarations
|
|
834
|
+
typeof globalThis extends { onmessage: any, URL: infer URL }
|
|
835
|
+
? URL
|
|
836
|
+
: typeof _URL;
|
|
833
837
|
/**
|
|
834
838
|
* `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
|
|
835
839
|
* https://nodejs.org/api/url.html#class-urlsearchparams
|
|
836
840
|
* @since v10.0.0
|
|
837
841
|
*/
|
|
838
|
-
var URLSearchParams:
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
842
|
+
var URLSearchParams:
|
|
843
|
+
// For compatibility with "dom" and "webworker" URLSearchParams declarations
|
|
844
|
+
typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
|
|
845
|
+
? URLSearchParams
|
|
846
|
+
: typeof _URLSearchParams;
|
|
843
847
|
}
|
|
844
848
|
}
|
|
845
849
|
declare module 'node:url' {
|