@types/node 14.18.2 → 14.18.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 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: Mon, 20 Dec 2021 23:01:23 GMT
11
+ * Last updated: Mon, 17 Jan 2022 09:01:29 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
@@ -279,6 +279,8 @@ declare module 'http' {
279
279
  aborted: boolean;
280
280
  host: string;
281
281
  protocol: string;
282
+ reusedSocket: boolean;
283
+ maxHeadersCount: number;
282
284
 
283
285
  constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
284
286
 
@@ -406,7 +408,7 @@ declare module 'http' {
406
408
  * Only valid for response obtained from http.ClientRequest.
407
409
  */
408
410
  statusMessage?: string | undefined;
409
- destroy(error?: Error): void;
411
+ destroy(error?: Error): this;
410
412
  }
411
413
 
412
414
  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.2",
3
+ "version": "14.18.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": "50b06853f2437862aaea36f3eb63de3623c57335209ea78eff60440c72a15b5c",
228
+ "typesPublisherContentHash": "a7bcc772985659539e879bf5f5df35c452cf6a69fd3cb641fb0529400a1e6e55",
229
229
  "typeScriptVersion": "3.8"
230
230
  }
@@ -120,7 +120,7 @@ declare module 'process' {
120
120
  /**
121
121
  * If true, a diagnostic report is generated when the process
122
122
  * receives the signal specified by process.report.signal.
123
- * @defaul false
123
+ * @default false
124
124
  */
125
125
  reportOnSignal: boolean;
126
126
 
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
  }
node v14.18/tls.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  declare module 'tls' {
2
2
  import * as net from 'net';
3
+ import * as stream from 'stream';
3
4
 
4
5
  const CLIENT_RENEG_LIMIT: number;
5
6
  const CLIENT_RENEG_WINDOW: number;
@@ -441,7 +442,7 @@ declare module 'tls' {
441
442
  host?: string | undefined;
442
443
  port?: number | undefined;
443
444
  path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored.
444
- socket?: net.Socket | undefined; // Establish secure connection on a given socket rather than creating a new socket
445
+ socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket
445
446
  checkServerIdentity?: typeof checkServerIdentity | undefined;
446
447
  servername?: string | undefined; // SNI TLS Extension
447
448
  session?: Buffer | undefined;