@types/node 18.17.2 → 18.17.3
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.17/README.md +1 -1
- node v18.17/package.json +2 -2
- node v18.17/test.d.ts +14 -0
node v18.17/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (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:
|
|
11
|
+
* Last updated: Sat, 05 Aug 2023 10:32:51 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
node v18.17/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.17.
|
|
3
|
+
"version": "18.17.3",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -232,6 +232,6 @@
|
|
|
232
232
|
},
|
|
233
233
|
"scripts": {},
|
|
234
234
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
235
|
+
"typesPublisherContentHash": "fd8131de2838678dcddea2bb1d0c4954c584e4e1ca0ff7f65d775ba27d866b82",
|
|
236
236
|
"typeScriptVersion": "4.3"
|
|
237
237
|
}
|
node v18.17/test.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @see [source](https://github.com/nodejs/node/blob/v18.x/lib/test.js)
|
|
4
4
|
*/
|
|
5
5
|
declare module 'node:test' {
|
|
6
|
+
import { AsyncResource } from 'node:async_hooks';
|
|
6
7
|
/**
|
|
7
8
|
* Programmatically start the test runner.
|
|
8
9
|
* @since v18.9.0
|
|
@@ -205,6 +206,19 @@ declare module 'node:test' {
|
|
|
205
206
|
* incremented from the primary's `process.debugPort`.
|
|
206
207
|
*/
|
|
207
208
|
inspectPort?: number | (() => number) | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* A function that accepts the TestsStream instance and can be used to setup listeners before any tests are run.
|
|
211
|
+
*/
|
|
212
|
+
setup?: (root: Test) => void | Promise<void>;
|
|
213
|
+
}
|
|
214
|
+
class Test extends AsyncResource {
|
|
215
|
+
concurrency: number;
|
|
216
|
+
nesting: number;
|
|
217
|
+
only: boolean;
|
|
218
|
+
reporter: TestsStream;
|
|
219
|
+
runOnlySubtests: boolean;
|
|
220
|
+
testNumber: number;
|
|
221
|
+
timeout: number | null;
|
|
208
222
|
}
|
|
209
223
|
|
|
210
224
|
/**
|