@types/node 18.7.11 → 18.7.14

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/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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 23 Aug 2022 03:02:32 GMT
11
+ * Last updated: Mon, 29 Aug 2022 23:32:43 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
node/crypto.d.ts CHANGED
@@ -1478,10 +1478,10 @@ declare module 'crypto' {
1478
1478
  * @param [generator=2]
1479
1479
  * @param generatorEncoding The `encoding` of the `generator` string.
1480
1480
  */
1481
- function createDiffieHellman(primeLength: number, generator?: number | NodeJS.ArrayBufferView): DiffieHellman;
1482
- function createDiffieHellman(prime: NodeJS.ArrayBufferView): DiffieHellman;
1483
- function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding): DiffieHellman;
1484
- function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator: number | NodeJS.ArrayBufferView): DiffieHellman;
1481
+ function createDiffieHellman(primeLength: number, generator?: number): DiffieHellman;
1482
+ function createDiffieHellman(prime: ArrayBuffer | NodeJS.ArrayBufferView, generator?: number | ArrayBuffer | NodeJS.ArrayBufferView): DiffieHellman;
1483
+ function createDiffieHellman(prime: ArrayBuffer | NodeJS.ArrayBufferView, generator: string, generatorEncoding: BinaryToTextEncoding): DiffieHellman;
1484
+ function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator?: number | ArrayBuffer | NodeJS.ArrayBufferView): DiffieHellman;
1485
1485
  function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator: string, generatorEncoding: BinaryToTextEncoding): DiffieHellman;
1486
1486
  /**
1487
1487
  * The `DiffieHellman` class is a utility for creating Diffie-Hellman key
node/http.d.ts CHANGED
@@ -155,6 +155,25 @@ declare module 'http' {
155
155
  * @default false
156
156
  */
157
157
  insecureHTTPParser?: boolean | undefined;
158
+ /**
159
+ * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received.
160
+ * @default false
161
+ * @since v16.5.0
162
+ */
163
+ noDelay?: boolean | undefined;
164
+ /**
165
+ * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received,
166
+ * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`.
167
+ * @default false
168
+ * @since v16.5.0
169
+ */
170
+ keepAlive?: boolean | undefined;
171
+ /**
172
+ * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket.
173
+ * @default 0
174
+ * @since v16.5.0
175
+ */
176
+ keepAliveInitialDelay?: number | undefined;
158
177
  }
159
178
  type RequestListener = (req: IncomingMessage, res: ServerResponse) => void;
160
179
  /**
node/net.d.ts CHANGED
@@ -54,6 +54,9 @@ declare module 'net' {
54
54
  hints?: number | undefined;
55
55
  family?: number | undefined;
56
56
  lookup?: LookupFunction | undefined;
57
+ noDelay?: boolean | undefined;
58
+ keepAlive?: boolean | undefined;
59
+ keepAliveInitialDelay?: number | undefined;
57
60
  }
58
61
  interface IpcSocketConnectOpts extends ConnectOpts {
59
62
  path: string;
@@ -399,6 +402,25 @@ declare module 'net' {
399
402
  * @default false
400
403
  */
401
404
  pauseOnConnect?: boolean | undefined;
405
+ /**
406
+ * If set to `true`, it disables the use of Nagle's algorithm immediately after a new incoming connection is received.
407
+ * @default false
408
+ * @since v16.5.0
409
+ */
410
+ noDelay?: boolean | undefined;
411
+ /**
412
+ * If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received,
413
+ * similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`.
414
+ * @default false
415
+ * @since v16.5.0
416
+ */
417
+ keepAlive?: boolean | undefined;
418
+ /**
419
+ * If set to a positive number, it sets the initial delay before the first keepalive probe is sent on an idle socket.
420
+ * @default 0
421
+ * @since v16.5.0
422
+ */
423
+ keepAliveInitialDelay?: number | undefined;
402
424
  }
403
425
  /**
404
426
  * This class is used to create a TCP or `IPC` server.
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.7.11",
3
+ "version": "18.7.14",
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": "2923fd24a757907199c42bb2351ce2e0fe9a413d8ff22380cf83e214ded17d15",
223
+ "typesPublisherContentHash": "db81534897d076e115cb9949512e2c2a419c694de07c7e2d4142c42471fc69ce",
224
224
  "typeScriptVersion": "4.0"
225
225
  }
node/process.d.ts CHANGED
@@ -97,7 +97,7 @@ declare module 'process' {
97
97
  type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void;
98
98
  /**
99
99
  * Most of the time the unhandledRejection will be an Error, but this should not be relied upon
100
- * as *anything* can be thrown/rejected, it is therefore unsafe to assume the the value is an Error.
100
+ * as *anything* can be thrown/rejected, it is therefore unsafe to assume that the value is an Error.
101
101
  */
102
102
  type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
103
103
  type WarningListener = (warning: Error) => void;