@types/node 16.18.0 → 16.18.2

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.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/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Sun, 23 Oct 2022 19:32:41 GMT
11
+ * Last updated: Wed, 26 Oct 2022 20:33:00 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
@@ -72,7 +72,7 @@ declare var AbortController: {
72
72
  declare var AbortSignal: {
73
73
  prototype: AbortSignal;
74
74
  new(): AbortSignal;
75
- // TODO: Add abort() static
75
+ abort(reason?: any): AbortSignal;
76
76
  timeout(milliseconds: number): AbortSignal;
77
77
  };
78
78
  //#endregion borrowed
node v16.18/http.d.ts CHANGED
@@ -1484,6 +1484,13 @@ declare module 'http' {
1484
1484
  */
1485
1485
  function validateHeaderValue(name: string, value: string): void;
1486
1486
 
1487
+ /**
1488
+ * Set the maximum number of idle HTTP parsers. Default: 1000.
1489
+ * @param count
1490
+ * @since v18.8.0, v16.18.0
1491
+ */
1492
+ function setMaxIdleHTTPParsers(count: number): void;
1493
+
1487
1494
  let globalAgent: Agent;
1488
1495
  /**
1489
1496
  * Read-only property specifying the maximum allowed size of HTTP headers in bytes.
node v16.18/net.d.ts CHANGED
@@ -266,6 +266,11 @@ declare module 'net' {
266
266
  * @since v0.9.6
267
267
  */
268
268
  readonly localPort?: number;
269
+ /**
270
+ * The string representation of the local IP family. `'IPv4'` or `'IPv6'`.
271
+ * @since v18.8.0, v16.18.0
272
+ */
273
+ readonly localFamily?: string;
269
274
  /**
270
275
  * This property represents the state of the connection as a string.
271
276
  * @see {https://nodejs.org/api/net.html#socketreadystate}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.18.0",
3
+ "version": "16.18.2",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -227,6 +227,6 @@
227
227
  },
228
228
  "scripts": {},
229
229
  "dependencies": {},
230
- "typesPublisherContentHash": "2b6c8f711e902b623457d5701f81d8d954532fcf445522de3345ddf38a5e6897",
230
+ "typesPublisherContentHash": "740a4a91bf04398bb328215daeb7952aa1691cfe329a2d9c03a157445fe86c16",
231
231
  "typeScriptVersion": "4.1"
232
232
  }
@@ -1484,6 +1484,13 @@ declare module 'http' {
1484
1484
  */
1485
1485
  function validateHeaderValue(name: string, value: string): void;
1486
1486
 
1487
+ /**
1488
+ * Set the maximum number of idle HTTP parsers. Default: 1000.
1489
+ * @param count
1490
+ * @since v18.8.0, v16.18.0
1491
+ */
1492
+ function setMaxIdleHTTPParsers(count: number): void;
1493
+
1487
1494
  let globalAgent: Agent;
1488
1495
  /**
1489
1496
  * Read-only property specifying the maximum allowed size of HTTP headers in bytes.
@@ -266,6 +266,11 @@ declare module 'net' {
266
266
  * @since v0.9.6
267
267
  */
268
268
  readonly localPort?: number;
269
+ /**
270
+ * The string representation of the local IP family. `'IPv4'` or `'IPv6'`.
271
+ * @since v18.8.0, v16.18.0
272
+ */
273
+ readonly localFamily?: string;
269
274
  /**
270
275
  * This property represents the state of the connection as a string.
271
276
  * @see {https://nodejs.org/api/net.html#socketreadystate}