@types/node 22.19.9 → 22.19.11
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.19/README.md +1 -1
- node v22.19/http.d.ts +1 -1
- node v22.19/package.json +2 -2
- node v22.19/test.d.ts +2 -1
node v22.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/v22.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 10 Feb 2026 14:48:58 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v22.19/http.d.ts
CHANGED
|
@@ -1600,7 +1600,7 @@ declare module "http" {
|
|
|
1600
1600
|
* sockets. Do not modify.
|
|
1601
1601
|
* @since v0.5.9
|
|
1602
1602
|
*/
|
|
1603
|
-
readonly requests: NodeJS.ReadOnlyDict<
|
|
1603
|
+
readonly requests: NodeJS.ReadOnlyDict<ClientRequest[]>;
|
|
1604
1604
|
constructor(opts?: AgentOptions);
|
|
1605
1605
|
/**
|
|
1606
1606
|
* Destroy any sockets that are currently in use by the agent.
|
node v22.19/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "22.19.
|
|
3
|
+
"version": "22.19.11",
|
|
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": "
|
|
143
|
+
"typesPublisherContentHash": "fef4b2a2c689572dea6fc34da762614a4a4b8221878f76391300da0367348418",
|
|
144
144
|
"typeScriptVersion": "5.2"
|
|
145
145
|
}
|
node v22.19/test.d.ts
CHANGED
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
declare module "node:test" {
|
|
82
82
|
import { AssertMethodNames } from "node:assert";
|
|
83
83
|
import { Readable } from "node:stream";
|
|
84
|
+
import { URL } from "node:url";
|
|
84
85
|
import TestFn = test.TestFn;
|
|
85
86
|
import TestOptions = test.TestOptions;
|
|
86
87
|
/**
|
|
@@ -1638,7 +1639,7 @@ declare module "node:test" {
|
|
|
1638
1639
|
* @param specifier A string identifying the module to mock.
|
|
1639
1640
|
* @param options Optional configuration options for the mock module.
|
|
1640
1641
|
*/
|
|
1641
|
-
module(specifier: string, options?: MockModuleOptions): MockModuleContext;
|
|
1642
|
+
module(specifier: string | URL, options?: MockModuleOptions): MockModuleContext;
|
|
1642
1643
|
/**
|
|
1643
1644
|
* This function restores the default behavior of all mocks that were previously
|
|
1644
1645
|
* created by this `MockTracker` and disassociates the mocks from the `MockTracker` instance. Once disassociated, the mocks can still be used, but the `MockTracker` instance can no longer be
|