@types/node 18.7.11 → 18.7.12
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 +1 -1
- node/http.d.ts +19 -0
- node/net.d.ts +22 -0
- node/package.json +2 -2
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:
|
|
11
|
+
* Last updated: Wed, 24 Aug 2022 03:02:33 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
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.
|
|
3
|
+
"version": "18.7.12",
|
|
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": "
|
|
223
|
+
"typesPublisherContentHash": "9f3d791ffcdcd368ff62731a9a202e729c7045a2435b6a592d5925c90269dc47",
|
|
224
224
|
"typeScriptVersion": "4.0"
|
|
225
225
|
}
|