@types/node 20.17.23 → 20.17.25

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 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, 03 Mar 2025 18:02:26 GMT
11
+ * Last updated: Fri, 21 Mar 2025 09:02:30 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -1,16 +1,18 @@
1
- /** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */
1
+ /**
2
+ * @deprecated The `node:constants` module is deprecated. When requiring access to constants
3
+ * relevant to specific Node.js builtin modules, developers should instead refer
4
+ * to the `constants` property exposed by the relevant module. For instance,
5
+ * `require('node:fs').constants` and `require('node:os').constants`.
6
+ */
2
7
  declare module "constants" {
3
- import { constants as osConstants, SignalConstants } from "node:os";
4
- import { constants as cryptoConstants } from "node:crypto";
5
- import { constants as fsConstants } from "node:fs";
6
-
7
- const exp:
8
- & typeof osConstants.errno
9
- & typeof osConstants.priority
10
- & SignalConstants
11
- & typeof cryptoConstants
12
- & typeof fsConstants;
13
- export = exp;
8
+ const constants:
9
+ & typeof import("node:os").constants.dlopen
10
+ & typeof import("node:os").constants.errno
11
+ & typeof import("node:os").constants.priority
12
+ & typeof import("node:os").constants.signals
13
+ & typeof import("node:fs").constants
14
+ & typeof import("node:crypto").constants;
15
+ export = constants;
14
16
  }
15
17
 
16
18
  declare module "node:constants" {
node v20.17/http.d.ts CHANGED
@@ -340,8 +340,8 @@ declare module "http" {
340
340
  * @since v0.9.12
341
341
  * @param [msecs=0 (no timeout)]
342
342
  */
343
- setTimeout(msecs?: number, callback?: () => void): this;
344
- setTimeout(callback: () => void): this;
343
+ setTimeout(msecs?: number, callback?: (socket: Socket) => void): this;
344
+ setTimeout(callback: (socket: Socket) => void): this;
345
345
  /**
346
346
  * Limits maximum incoming headers count. If set to 0, no limit will be applied.
347
347
  * @since v0.7.0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.17.23",
3
+ "version": "20.17.25",
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": "a2630589632fe577f465d72629a0aeafe2c2c21ad799ace4b1939bfc322c6445",
218
+ "typesPublisherContentHash": "f33e3ea8bd685f5f5707deffc73795f776c67f0b13e6018d2eb1ea9de577f7cc",
219
219
  "typeScriptVersion": "5.0"
220
220
  }