@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 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: Sun, 26 Dec 2021 13:01:24 GMT
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
 
@@ -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): void;
461
- end(data: string | Uint8Array, cb?: () => void): void;
462
- end(str: string, encoding?: BufferEncoding, cb?: () => void): 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
@@ -406,7 +406,7 @@ declare module 'http' {
406
406
  * Only valid for response obtained from http.ClientRequest.
407
407
  */
408
408
  statusMessage?: string | undefined;
409
- destroy(error?: Error): void;
409
+ destroy(error?: Error): this;
410
410
  }
411
411
 
412
412
  interface AgentOptions {
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): void;
664
- end(data: string | Uint8Array, callback?: () => void): void;
665
- end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): 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): void;
96
- end(buffer: Uint8Array | string, cb?: () => void): void;
97
- end(str: Uint8Array | string, encoding?: BufferEncoding, cb?: () => void): 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.18.3",
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": "feccfa53d66b9ccffb14dd0e28b04bb36f497195fbffbb19ce9292ad861e3b3e",
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): void;
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): void;
158
- end(chunk: any, cb?: () => void): void;
159
- end(chunk: any, encoding: BufferEncoding, cb?: () => void): 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): void;
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): void;
264
- end(chunk: any, cb?: () => void): void;
265
- end(chunk: any, encoding?: BufferEncoding, cb?: () => void): 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
  }