@types/node 20.14.9 → 20.14.10
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/README.md +1 -1
- node/package.json +2 -2
- node/test.d.ts +11 -0
node/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.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Fri, 05 Jul 2024 19:07:00 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "20.14.
|
3
|
+
"version": "20.14.10",
|
4
4
|
"description": "TypeScript definitions for node",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
6
6
|
"license": "MIT",
|
@@ -212,6 +212,6 @@
|
|
212
212
|
"dependencies": {
|
213
213
|
"undici-types": "~5.26.4"
|
214
214
|
},
|
215
|
-
"typesPublisherContentHash": "
|
215
|
+
"typesPublisherContentHash": "b17c0002475911f007185cf574aab21231670287a5241042fb3697a72c3d2ce3",
|
216
216
|
"typeScriptVersion": "4.8"
|
217
217
|
}
|
node/test.d.ts
CHANGED
@@ -941,6 +941,17 @@ declare module "node:test" {
|
|
941
941
|
* @since v19.1.0, v18.13.0
|
942
942
|
*/
|
943
943
|
restoreAll(): void;
|
944
|
+
/**
|
945
|
+
* This function is used to mock the exports of ECMAScript modules,
|
946
|
+
* CommonJS modules, and Node.js builtin modules. Any references to
|
947
|
+
* the original module prior to mocking are not impacted
|
948
|
+
* @since v22.3.0
|
949
|
+
*/
|
950
|
+
module(speficier: string, options?: {
|
951
|
+
cache?: boolean;
|
952
|
+
defaultExport?: any;
|
953
|
+
namedExports?: object;
|
954
|
+
}): { restore: () => void };
|
944
955
|
timers: MockTimers;
|
945
956
|
}
|
946
957
|
const mock: MockTracker;
|