@types/node 18.19.89 → 18.19.90

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 v18.19/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/v18.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 05 May 2025 20:02:28 GMT
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
@@ -516,6 +516,70 @@ declare module "async_hooks" {
516
516
  */
517
517
  enterWith(store: T): void;
518
518
  }
519
+ /**
520
+ * @since v17.2.0, v16.14.0
521
+ * @return A map of provider types to the corresponding numeric id.
522
+ * This map contains all the event types that might be emitted by the `async_hooks.init()` event.
523
+ */
524
+ namespace asyncWrapProviders {
525
+ const NONE: number;
526
+ const DIRHANDLE: number;
527
+ const DNSCHANNEL: number;
528
+ const ELDHISTOGRAM: number;
529
+ const FILEHANDLE: number;
530
+ const FILEHANDLECLOSEREQ: number;
531
+ const FIXEDSIZEBLOBCOPY: number;
532
+ const FSEVENTWRAP: number;
533
+ const FSREQCALLBACK: number;
534
+ const FSREQPROMISE: number;
535
+ const GETADDRINFOREQWRAP: number;
536
+ const GETNAMEINFOREQWRAP: number;
537
+ const HEAPSNAPSHOT: number;
538
+ const HTTP2SESSION: number;
539
+ const HTTP2STREAM: number;
540
+ const HTTP2PING: number;
541
+ const HTTP2SETTINGS: number;
542
+ const HTTPINCOMINGMESSAGE: number;
543
+ const HTTPCLIENTREQUEST: number;
544
+ const JSSTREAM: number;
545
+ const JSUDPWRAP: number;
546
+ const MESSAGEPORT: number;
547
+ const PIPECONNECTWRAP: number;
548
+ const PIPESERVERWRAP: number;
549
+ const PIPEWRAP: number;
550
+ const PROCESSWRAP: number;
551
+ const PROMISE: number;
552
+ const QUERYWRAP: number;
553
+ const SHUTDOWNWRAP: number;
554
+ const SIGNALWRAP: number;
555
+ const STATWATCHER: number;
556
+ const STREAMPIPE: number;
557
+ const TCPCONNECTWRAP: number;
558
+ const TCPSERVERWRAP: number;
559
+ const TCPWRAP: number;
560
+ const TTYWRAP: number;
561
+ const UDPSENDWRAP: number;
562
+ const UDPWRAP: number;
563
+ const SIGINTWATCHDOG: number;
564
+ const WORKER: number;
565
+ const WORKERHEAPSNAPSHOT: number;
566
+ const WRITEWRAP: number;
567
+ const ZLIB: number;
568
+ const CHECKPRIMEREQUEST: number;
569
+ const PBKDF2REQUEST: number;
570
+ const KEYPAIRGENREQUEST: number;
571
+ const KEYGENREQUEST: number;
572
+ const KEYEXPORTREQUEST: number;
573
+ const CIPHERREQUEST: number;
574
+ const DERIVEBITSREQUEST: number;
575
+ const HASHREQUEST: number;
576
+ const RANDOMBYTESREQUEST: number;
577
+ const RANDOMPRIMEREQUEST: number;
578
+ const SCRYPTREQUEST: number;
579
+ const SIGNREQUEST: number;
580
+ const TLSWRAP: number;
581
+ const VERIFYREQUEST: number;
582
+ }
519
583
  }
520
584
  declare module "node:async_hooks" {
521
585
  export * from "async_hooks";
node v18.19/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`.
@@ -313,6 +320,12 @@ declare module "http" {
313
320
  * If the header's value is an array, the items will be joined using `; `.
314
321
  */
315
322
  uniqueHeaders?: Array<string | string[]> | undefined;
323
+ /**
324
+ * If set to `true`, an error is thrown when writing to an HTTP response which does not have a body.
325
+ * @default false
326
+ * @since v18.17.0, v20.2.0
327
+ */
328
+ rejectNonStandardBodyWrites?: boolean | undefined;
316
329
  }
317
330
  type RequestListener<
318
331
  Request extends typeof IncomingMessage = typeof IncomingMessage,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.19.89",
3
+ "version": "18.19.90",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  "undici-types": "~5.26.4"
221
221
  },
222
222
  "peerDependencies": {},
223
- "typesPublisherContentHash": "a6e957bbe1c58f10136c593f3de18daf2ee43a7beff61e8fba259db009ede5a4",
223
+ "typesPublisherContentHash": "1f6bb0d4d9c32626515d959644db82b40126c419dcb4fd746d763e00bd12e7c6",
224
224
  "typeScriptVersion": "5.1"
225
225
  }
@@ -25,9 +25,8 @@ declare module "querystring" {
25
25
  | string
26
26
  | number
27
27
  | boolean
28
- | readonly string[]
29
- | readonly number[]
30
- | readonly boolean[]
28
+ | bigint
29
+ | ReadonlyArray<string | number | boolean | bigint>
31
30
  | null
32
31
  >
33
32
  {}