@types/node 22.18.8 → 22.18.9

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 v22.18/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/v22.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 30 Sep 2025 23:32:16 GMT
11
+ * Last updated: Thu, 09 Oct 2025 17:35:09 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -143,6 +143,8 @@ declare namespace NodeJS {
143
143
  readonly [key: string]: T | undefined;
144
144
  }
145
145
 
146
+ type PartialOptions<T> = { [K in keyof T]?: T[K] | undefined };
147
+
146
148
  interface GCFunction {
147
149
  (minor?: boolean): void;
148
150
  (options: NodeJS.GCOptions & { execution: "async" }): Promise<void>;
node v22.18/http.d.ts CHANGED
@@ -1419,7 +1419,7 @@ declare module "http" {
1419
1419
  */
1420
1420
  destroy(error?: Error): this;
1421
1421
  }
1422
- interface AgentOptions extends Partial<TcpSocketConnectOpts> {
1422
+ interface AgentOptions extends NodeJS.PartialOptions<TcpSocketConnectOpts> {
1423
1423
  /**
1424
1424
  * Keep sockets around in a pool to be used by other requests in the future. Default = false
1425
1425
  */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.18.8",
3
+ "version": "22.18.9",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -140,6 +140,6 @@
140
140
  "undici-types": "~6.21.0"
141
141
  },
142
142
  "peerDependencies": {},
143
- "typesPublisherContentHash": "044f75e3119c1f821a07c434b16c3cebf99c812c67c1db15d8b7abd8caad071d",
143
+ "typesPublisherContentHash": "6b0f459bde791c079af2fa491f14b70ca7fb1136572f3151dd7c0b899f68651c",
144
144
  "typeScriptVersion": "5.2"
145
145
  }