@types/node 14.18.3 → 14.18.4
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 v14.18/README.md +1 -1
- node v14.18/globals.d.ts +3 -3
- node v14.18/http.d.ts +1 -1
- node v14.18/http2.d.ts +3 -3
- node v14.18/net.d.ts +3 -3
- node v14.18/package.json +2 -2
- node v14.18/stream.d.ts +8 -8
node v14.18/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/v14.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sat, 01 Jan 2022 14:01:35 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v14.18/globals.d.ts
CHANGED
|
@@ -457,9 +457,9 @@ declare namespace NodeJS {
|
|
|
457
457
|
writable: boolean;
|
|
458
458
|
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
|
459
459
|
write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
|
460
|
-
end(cb?: () => void):
|
|
461
|
-
end(data: string | Uint8Array, cb?: () => void):
|
|
462
|
-
end(str: string, encoding?: BufferEncoding, cb?: () => void):
|
|
460
|
+
end(cb?: () => void): this;
|
|
461
|
+
end(data: string | Uint8Array, cb?: () => void): this;
|
|
462
|
+
end(str: string, encoding?: BufferEncoding, cb?: () => void): this;
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
interface ReadWriteStream extends ReadableStream, WritableStream { }
|
node v14.18/http.d.ts
CHANGED
node v14.18/http2.d.ts
CHANGED
|
@@ -660,9 +660,9 @@ declare module 'http2' {
|
|
|
660
660
|
statusCode: number;
|
|
661
661
|
statusMessage: '';
|
|
662
662
|
addTrailers(trailers: OutgoingHttpHeaders): void;
|
|
663
|
-
end(callback?: () => void):
|
|
664
|
-
end(data: string | Uint8Array, callback?: () => void):
|
|
665
|
-
end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void):
|
|
663
|
+
end(callback?: () => void): this;
|
|
664
|
+
end(data: string | Uint8Array, callback?: () => void): this;
|
|
665
|
+
end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this;
|
|
666
666
|
getHeader(name: string): string;
|
|
667
667
|
getHeaderNames(): string[];
|
|
668
668
|
getHeaders(): OutgoingHttpHeaders;
|
node v14.18/net.d.ts
CHANGED
|
@@ -92,9 +92,9 @@ declare module 'net' {
|
|
|
92
92
|
readonly remotePort?: number | undefined;
|
|
93
93
|
|
|
94
94
|
// Extended base methods
|
|
95
|
-
end(cb?: () => void):
|
|
96
|
-
end(buffer: Uint8Array | string, cb?: () => void):
|
|
97
|
-
end(str: Uint8Array | string, encoding?: BufferEncoding, cb?: () => void):
|
|
95
|
+
end(cb?: () => void): this;
|
|
96
|
+
end(buffer: Uint8Array | string, cb?: () => void): this;
|
|
97
|
+
end(str: Uint8Array | string, encoding?: BufferEncoding, cb?: () => void): this;
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* events.EventEmitter
|
node v14.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.18.
|
|
3
|
+
"version": "14.18.4",
|
|
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": "0afc7216be9a294af879d2a7a446a4eac7f4b612c913f0881e4cd51b19a4439d",
|
|
229
229
|
"typeScriptVersion": "3.8"
|
|
230
230
|
}
|
node v14.18/stream.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ declare module 'stream' {
|
|
|
45
45
|
wrap(oldStream: NodeJS.ReadableStream): this;
|
|
46
46
|
push(chunk: any, encoding?: BufferEncoding): boolean;
|
|
47
47
|
_destroy(error: Error | null, callback: (error?: Error | null) => void): void;
|
|
48
|
-
destroy(error?: Error):
|
|
48
|
+
destroy(error?: Error): this;
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* Event emitter
|
|
@@ -154,12 +154,12 @@ declare module 'stream' {
|
|
|
154
154
|
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
|
|
155
155
|
write(chunk: any, encoding: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
|
|
156
156
|
setDefaultEncoding(encoding: BufferEncoding): this;
|
|
157
|
-
end(cb?: () => void):
|
|
158
|
-
end(chunk: any, cb?: () => void):
|
|
159
|
-
end(chunk: any, encoding: BufferEncoding, cb?: () => void):
|
|
157
|
+
end(cb?: () => void): this;
|
|
158
|
+
end(chunk: any, cb?: () => void): this;
|
|
159
|
+
end(chunk: any, encoding: BufferEncoding, cb?: () => void): this;
|
|
160
160
|
cork(): void;
|
|
161
161
|
uncork(): void;
|
|
162
|
-
destroy(error?: Error):
|
|
162
|
+
destroy(error?: Error): this;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* Event emitter
|
|
@@ -260,9 +260,9 @@ declare module 'stream' {
|
|
|
260
260
|
write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean;
|
|
261
261
|
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean;
|
|
262
262
|
setDefaultEncoding(encoding: BufferEncoding): this;
|
|
263
|
-
end(cb?: () => void):
|
|
264
|
-
end(chunk: any, cb?: () => void):
|
|
265
|
-
end(chunk: any, encoding?: BufferEncoding, cb?: () => void):
|
|
263
|
+
end(cb?: () => void): this;
|
|
264
|
+
end(chunk: any, cb?: () => void): this;
|
|
265
|
+
end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this;
|
|
266
266
|
cork(): void;
|
|
267
267
|
uncork(): void;
|
|
268
268
|
}
|