@types/node 20.4.5 → 20.4.7
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 +2 -2
- node/index.d.ts +0 -1
- node/package.json +2 -7
- node/test.d.ts +35 -4
- node/ts4.8/test.d.ts +35 -4
node/README.md
CHANGED
|
@@ -8,9 +8,9 @@ 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.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 04 Aug 2023 00:33:03 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [
|
|
16
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky).
|
node/index.d.ts
CHANGED
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
// Nikita Galkin <https://github.com/galkin>
|
|
22
22
|
// Parambir Singh <https://github.com/parambirs>
|
|
23
23
|
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
24
|
-
// Simon Schick <https://github.com/SimonSchick>
|
|
25
24
|
// Thomas den Hollander <https://github.com/ThomasdenH>
|
|
26
25
|
// Wilco Bakker <https://github.com/WilcoBakker>
|
|
27
26
|
// wwwy3y3 <https://github.com/wwwy3y3>
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.4.
|
|
3
|
+
"version": "20.4.7",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -110,11 +110,6 @@
|
|
|
110
110
|
"url": "https://github.com/eps1lon",
|
|
111
111
|
"githubUsername": "eps1lon"
|
|
112
112
|
},
|
|
113
|
-
{
|
|
114
|
-
"name": "Simon Schick",
|
|
115
|
-
"url": "https://github.com/SimonSchick",
|
|
116
|
-
"githubUsername": "SimonSchick"
|
|
117
|
-
},
|
|
118
113
|
{
|
|
119
114
|
"name": "Thomas den Hollander",
|
|
120
115
|
"url": "https://github.com/ThomasdenH",
|
|
@@ -232,6 +227,6 @@
|
|
|
232
227
|
},
|
|
233
228
|
"scripts": {},
|
|
234
229
|
"dependencies": {},
|
|
235
|
-
"typesPublisherContentHash": "
|
|
230
|
+
"typesPublisherContentHash": "929041bfc4462afad369a46a2485dd9f3401c1add1c626848746107727c43a71",
|
|
236
231
|
"typeScriptVersion": "4.3"
|
|
237
232
|
}
|
node/test.d.ts
CHANGED
|
@@ -1218,7 +1218,7 @@ interface TestFail {
|
|
|
1218
1218
|
/**
|
|
1219
1219
|
* The duration of the test in milliseconds.
|
|
1220
1220
|
*/
|
|
1221
|
-
|
|
1221
|
+
duration_ms: number;
|
|
1222
1222
|
/**
|
|
1223
1223
|
* The error thrown by the test.
|
|
1224
1224
|
*/
|
|
@@ -1257,7 +1257,7 @@ interface TestPass {
|
|
|
1257
1257
|
/**
|
|
1258
1258
|
* The duration of the test in milliseconds.
|
|
1259
1259
|
*/
|
|
1260
|
-
|
|
1260
|
+
duration_ms: number;
|
|
1261
1261
|
};
|
|
1262
1262
|
/**
|
|
1263
1263
|
* The test name.
|
|
@@ -1332,6 +1332,34 @@ interface TestStdout {
|
|
|
1332
1332
|
*/
|
|
1333
1333
|
message: string;
|
|
1334
1334
|
}
|
|
1335
|
+
interface TestEnqueue {
|
|
1336
|
+
/**
|
|
1337
|
+
* The test name
|
|
1338
|
+
*/
|
|
1339
|
+
name: string;
|
|
1340
|
+
/**
|
|
1341
|
+
* The path of the test file, undefined if test is not ran through a file.
|
|
1342
|
+
*/
|
|
1343
|
+
file?: string;
|
|
1344
|
+
/**
|
|
1345
|
+
* The nesting level of the test.
|
|
1346
|
+
*/
|
|
1347
|
+
nesting: number;
|
|
1348
|
+
}
|
|
1349
|
+
interface TestDequeue {
|
|
1350
|
+
/**
|
|
1351
|
+
* The test name
|
|
1352
|
+
*/
|
|
1353
|
+
name: string;
|
|
1354
|
+
/**
|
|
1355
|
+
* The path of the test file, undefined if test is not ran through a file.
|
|
1356
|
+
*/
|
|
1357
|
+
file?: string;
|
|
1358
|
+
/**
|
|
1359
|
+
* The nesting level of the test.
|
|
1360
|
+
*/
|
|
1361
|
+
nesting: number;
|
|
1362
|
+
}
|
|
1335
1363
|
|
|
1336
1364
|
/**
|
|
1337
1365
|
* The `node:test/reporters` module exposes the builtin-reporters for `node:test`.
|
|
@@ -1360,7 +1388,10 @@ declare module 'node:test/reporters' {
|
|
|
1360
1388
|
| { type: 'test:plan', data: TestPlan }
|
|
1361
1389
|
| { type: 'test:start', data: TestStart }
|
|
1362
1390
|
| { type: 'test:stderr', data: TestStderr }
|
|
1363
|
-
| { type: 'test:stdout', data: TestStdout }
|
|
1391
|
+
| { type: 'test:stdout', data: TestStdout }
|
|
1392
|
+
| { type: 'test:enqueue', data: TestEnqueue }
|
|
1393
|
+
| { type: 'test:dequeue', data: TestDequeue }
|
|
1394
|
+
| { type: 'test:watch:drained' };
|
|
1364
1395
|
type TestEventGenerator = AsyncGenerator<TestEvent, void>;
|
|
1365
1396
|
|
|
1366
1397
|
/**
|
|
@@ -1379,5 +1410,5 @@ declare module 'node:test/reporters' {
|
|
|
1379
1410
|
class Spec extends Transform {
|
|
1380
1411
|
constructor();
|
|
1381
1412
|
}
|
|
1382
|
-
export { dot, tap, Spec as spec };
|
|
1413
|
+
export { dot, tap, Spec as spec, TestEvent };
|
|
1383
1414
|
}
|
node/ts4.8/test.d.ts
CHANGED
|
@@ -1200,7 +1200,7 @@ interface TestFail {
|
|
|
1200
1200
|
/**
|
|
1201
1201
|
* The duration of the test in milliseconds.
|
|
1202
1202
|
*/
|
|
1203
|
-
|
|
1203
|
+
duration_ms: number;
|
|
1204
1204
|
/**
|
|
1205
1205
|
* The error thrown by the test.
|
|
1206
1206
|
*/
|
|
@@ -1239,7 +1239,7 @@ interface TestPass {
|
|
|
1239
1239
|
/**
|
|
1240
1240
|
* The duration of the test in milliseconds.
|
|
1241
1241
|
*/
|
|
1242
|
-
|
|
1242
|
+
duration_ms: number;
|
|
1243
1243
|
};
|
|
1244
1244
|
/**
|
|
1245
1245
|
* The test name.
|
|
@@ -1314,6 +1314,34 @@ interface TestStdout {
|
|
|
1314
1314
|
*/
|
|
1315
1315
|
message: string;
|
|
1316
1316
|
}
|
|
1317
|
+
interface TestEnqueue {
|
|
1318
|
+
/**
|
|
1319
|
+
* The test name
|
|
1320
|
+
*/
|
|
1321
|
+
name: string;
|
|
1322
|
+
/**
|
|
1323
|
+
* The path of the test file, undefined if test is not ran through a file.
|
|
1324
|
+
*/
|
|
1325
|
+
file?: string;
|
|
1326
|
+
/**
|
|
1327
|
+
* The nesting level of the test.
|
|
1328
|
+
*/
|
|
1329
|
+
nesting: number;
|
|
1330
|
+
}
|
|
1331
|
+
interface TestDequeue {
|
|
1332
|
+
/**
|
|
1333
|
+
* The test name
|
|
1334
|
+
*/
|
|
1335
|
+
name: string;
|
|
1336
|
+
/**
|
|
1337
|
+
* The path of the test file, undefined if test is not ran through a file.
|
|
1338
|
+
*/
|
|
1339
|
+
file?: string;
|
|
1340
|
+
/**
|
|
1341
|
+
* The nesting level of the test.
|
|
1342
|
+
*/
|
|
1343
|
+
nesting: number;
|
|
1344
|
+
}
|
|
1317
1345
|
|
|
1318
1346
|
/**
|
|
1319
1347
|
* The `node:test/reporters` module exposes the builtin-reporters for `node:test`.
|
|
@@ -1342,7 +1370,10 @@ declare module 'node:test/reporters' {
|
|
|
1342
1370
|
| { type: 'test:plan', data: TestPlan }
|
|
1343
1371
|
| { type: 'test:start', data: TestStart }
|
|
1344
1372
|
| { type: 'test:stderr', data: TestStderr }
|
|
1345
|
-
| { type: 'test:stdout', data: TestStdout }
|
|
1373
|
+
| { type: 'test:stdout', data: TestStdout }
|
|
1374
|
+
| { type: 'test:enqueue', data: TestEnqueue }
|
|
1375
|
+
| { type: 'test:dequeue', data: TestDequeue }
|
|
1376
|
+
| { type: 'test:watch:drained' };
|
|
1346
1377
|
type TestEventGenerator = AsyncGenerator<TestEvent, void>;
|
|
1347
1378
|
|
|
1348
1379
|
/**
|
|
@@ -1361,5 +1392,5 @@ declare module 'node:test/reporters' {
|
|
|
1361
1392
|
class Spec extends Transform {
|
|
1362
1393
|
constructor();
|
|
1363
1394
|
}
|
|
1364
|
-
export { dot, tap, Spec as spec };
|
|
1395
|
+
export { dot, tap, Spec as spec, TestEvent };
|
|
1365
1396
|
}
|