@types/node 20.17.33 → 20.17.35
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 v20.17/README.md +1 -1
- node v20.17/async_hooks.d.ts +64 -0
- node v20.17/buffer.d.ts +1 -1
- node v20.17/http.d.ts +20 -0
- node v20.17/package.json +2 -2
- node v20.17/querystring.d.ts +2 -3
- node v20.17/util.d.ts +13 -0
node v20.17/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v20.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated: Mon, 05 May 2025
|
11
|
+
* Last updated: Mon, 05 May 2025 20:35:19 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node v20.17/async_hooks.d.ts
CHANGED
@@ -535,6 +535,70 @@ declare module "async_hooks" {
|
|
535
535
|
*/
|
536
536
|
enterWith(store: T): void;
|
537
537
|
}
|
538
|
+
/**
|
539
|
+
* @since v17.2.0, v16.14.0
|
540
|
+
* @return A map of provider types to the corresponding numeric id.
|
541
|
+
* This map contains all the event types that might be emitted by the `async_hooks.init()` event.
|
542
|
+
*/
|
543
|
+
namespace asyncWrapProviders {
|
544
|
+
const NONE: number;
|
545
|
+
const DIRHANDLE: number;
|
546
|
+
const DNSCHANNEL: number;
|
547
|
+
const ELDHISTOGRAM: number;
|
548
|
+
const FILEHANDLE: number;
|
549
|
+
const FILEHANDLECLOSEREQ: number;
|
550
|
+
const FIXEDSIZEBLOBCOPY: number;
|
551
|
+
const FSEVENTWRAP: number;
|
552
|
+
const FSREQCALLBACK: number;
|
553
|
+
const FSREQPROMISE: number;
|
554
|
+
const GETADDRINFOREQWRAP: number;
|
555
|
+
const GETNAMEINFOREQWRAP: number;
|
556
|
+
const HEAPSNAPSHOT: number;
|
557
|
+
const HTTP2SESSION: number;
|
558
|
+
const HTTP2STREAM: number;
|
559
|
+
const HTTP2PING: number;
|
560
|
+
const HTTP2SETTINGS: number;
|
561
|
+
const HTTPINCOMINGMESSAGE: number;
|
562
|
+
const HTTPCLIENTREQUEST: number;
|
563
|
+
const JSSTREAM: number;
|
564
|
+
const JSUDPWRAP: number;
|
565
|
+
const MESSAGEPORT: number;
|
566
|
+
const PIPECONNECTWRAP: number;
|
567
|
+
const PIPESERVERWRAP: number;
|
568
|
+
const PIPEWRAP: number;
|
569
|
+
const PROCESSWRAP: number;
|
570
|
+
const PROMISE: number;
|
571
|
+
const QUERYWRAP: number;
|
572
|
+
const SHUTDOWNWRAP: number;
|
573
|
+
const SIGNALWRAP: number;
|
574
|
+
const STATWATCHER: number;
|
575
|
+
const STREAMPIPE: number;
|
576
|
+
const TCPCONNECTWRAP: number;
|
577
|
+
const TCPSERVERWRAP: number;
|
578
|
+
const TCPWRAP: number;
|
579
|
+
const TTYWRAP: number;
|
580
|
+
const UDPSENDWRAP: number;
|
581
|
+
const UDPWRAP: number;
|
582
|
+
const SIGINTWATCHDOG: number;
|
583
|
+
const WORKER: number;
|
584
|
+
const WORKERHEAPSNAPSHOT: number;
|
585
|
+
const WRITEWRAP: number;
|
586
|
+
const ZLIB: number;
|
587
|
+
const CHECKPRIMEREQUEST: number;
|
588
|
+
const PBKDF2REQUEST: number;
|
589
|
+
const KEYPAIRGENREQUEST: number;
|
590
|
+
const KEYGENREQUEST: number;
|
591
|
+
const KEYEXPORTREQUEST: number;
|
592
|
+
const CIPHERREQUEST: number;
|
593
|
+
const DERIVEBITSREQUEST: number;
|
594
|
+
const HASHREQUEST: number;
|
595
|
+
const RANDOMBYTESREQUEST: number;
|
596
|
+
const RANDOMPRIMEREQUEST: number;
|
597
|
+
const SCRYPTREQUEST: number;
|
598
|
+
const SIGNREQUEST: number;
|
599
|
+
const TLSWRAP: number;
|
600
|
+
const VERIFYREQUEST: number;
|
601
|
+
}
|
538
602
|
}
|
539
603
|
declare module "node:async_hooks" {
|
540
604
|
export * from "async_hooks";
|
node v20.17/buffer.d.ts
CHANGED
@@ -69,7 +69,7 @@ declare module "buffer" {
|
|
69
69
|
* @param input The input to validate.
|
70
70
|
*/
|
71
71
|
export function isAscii(input: Buffer | ArrayBuffer | NodeJS.TypedArray): boolean;
|
72
|
-
export
|
72
|
+
export let INSPECT_MAX_BYTES: number;
|
73
73
|
export const kMaxLength: number;
|
74
74
|
export const kStringMaxLength: number;
|
75
75
|
export const constants: {
|
node v20.17/http.d.ts
CHANGED
@@ -267,6 +267,13 @@ declare module "http" {
|
|
267
267
|
* @default 30000
|
268
268
|
*/
|
269
269
|
connectionsCheckingInterval?: number | undefined;
|
270
|
+
/**
|
271
|
+
* Sets the timeout value in milliseconds for receiving the complete HTTP headers from the client.
|
272
|
+
* See {@link Server.headersTimeout} for more information.
|
273
|
+
* @default 60000
|
274
|
+
* @since 18.0.0
|
275
|
+
*/
|
276
|
+
headersTimeout?: number | undefined;
|
270
277
|
/**
|
271
278
|
* Optionally overrides all `socket`s' `readableHighWaterMark` and `writableHighWaterMark`.
|
272
279
|
* This affects `highWaterMark` property of both `IncomingMessage` and `ServerResponse`.
|
@@ -294,6 +301,13 @@ declare module "http" {
|
|
294
301
|
* @since v16.5.0
|
295
302
|
*/
|
296
303
|
noDelay?: boolean | undefined;
|
304
|
+
/**
|
305
|
+
* If set to `true`, it forces the server to respond with a 400 (Bad Request) status code
|
306
|
+
* to any HTTP/1.1 request message that lacks a Host header (as mandated by the specification).
|
307
|
+
* @default true
|
308
|
+
* @since 20.0.0
|
309
|
+
*/
|
310
|
+
requireHostHeader?: boolean | undefined;
|
297
311
|
/**
|
298
312
|
* If set to `true`, it enables keep-alive functionality on the socket immediately after a new incoming connection is received,
|
299
313
|
* similarly on what is done in `socket.setKeepAlive([enable][, initialDelay])`.
|
@@ -312,6 +326,12 @@ declare module "http" {
|
|
312
326
|
* If the header's value is an array, the items will be joined using `; `.
|
313
327
|
*/
|
314
328
|
uniqueHeaders?: Array<string | string[]> | undefined;
|
329
|
+
/**
|
330
|
+
* If set to `true`, an error is thrown when writing to an HTTP response which does not have a body.
|
331
|
+
* @default false
|
332
|
+
* @since v18.17.0, v20.2.0
|
333
|
+
*/
|
334
|
+
rejectNonStandardBodyWrites?: boolean | undefined;
|
315
335
|
}
|
316
336
|
type RequestListener<
|
317
337
|
Request extends typeof IncomingMessage = typeof IncomingMessage,
|
node v20.17/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "20.17.
|
3
|
+
"version": "20.17.35",
|
4
4
|
"description": "TypeScript definitions for node",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
6
6
|
"license": "MIT",
|
@@ -215,6 +215,6 @@
|
|
215
215
|
"undici-types": "~6.19.2"
|
216
216
|
},
|
217
217
|
"peerDependencies": {},
|
218
|
-
"typesPublisherContentHash": "
|
218
|
+
"typesPublisherContentHash": "61084644f75ee2aa54eff7440536ebd5a080163fbdb88c034d9ee7033d16bf6e",
|
219
219
|
"typeScriptVersion": "5.1"
|
220
220
|
}
|
node v20.17/querystring.d.ts
CHANGED
node v20.17/util.d.ts
CHANGED
@@ -1241,6 +1241,18 @@ declare module "util" {
|
|
1241
1241
|
| "reset"
|
1242
1242
|
| "strikethrough"
|
1243
1243
|
| "underline";
|
1244
|
+
export interface StyleTextOptions {
|
1245
|
+
/**
|
1246
|
+
* When true, `stream` is checked to see if it can handle colors.
|
1247
|
+
* @default true
|
1248
|
+
*/
|
1249
|
+
validateStream?: boolean | undefined;
|
1250
|
+
/**
|
1251
|
+
* A stream that will be validated if it can be colored.
|
1252
|
+
* @default process.stdout
|
1253
|
+
*/
|
1254
|
+
stream?: NodeJS.WritableStream | undefined;
|
1255
|
+
}
|
1244
1256
|
/**
|
1245
1257
|
* Stability: 1.1 - Active development
|
1246
1258
|
*
|
@@ -1281,6 +1293,7 @@ declare module "util" {
|
|
1281
1293
|
| Modifiers
|
1282
1294
|
| Array<ForegroundColors | BackgroundColors | Modifiers>,
|
1283
1295
|
text: string,
|
1296
|
+
options?: StyleTextOptions,
|
1284
1297
|
): string;
|
1285
1298
|
/**
|
1286
1299
|
* An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextDecoder` API.
|