@types/node 18.17.1 → 18.17.2
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 +35 -4
- node v18.17/ts4.8/test.d.ts +35 -4
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: Fri, 04 Aug 2023 00:33:04 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.2",
|
|
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": "b6f6881e5a421ebfb565206b2dcb1b5dd8997fc894325c4dd94c8bab43ff1791",
|
|
236
236
|
"typeScriptVersion": "4.3"
|
|
237
237
|
}
|
node v18.17/test.d.ts
CHANGED
|
@@ -737,7 +737,7 @@ interface TestFail {
|
|
|
737
737
|
/**
|
|
738
738
|
* The duration of the test in milliseconds.
|
|
739
739
|
*/
|
|
740
|
-
|
|
740
|
+
duration_ms: number;
|
|
741
741
|
/**
|
|
742
742
|
* The error thrown by the test.
|
|
743
743
|
*/
|
|
@@ -776,7 +776,7 @@ interface TestPass {
|
|
|
776
776
|
/**
|
|
777
777
|
* The duration of the test in milliseconds.
|
|
778
778
|
*/
|
|
779
|
-
|
|
779
|
+
duration_ms: number;
|
|
780
780
|
};
|
|
781
781
|
/**
|
|
782
782
|
* The test name.
|
|
@@ -851,6 +851,34 @@ interface TestStdout {
|
|
|
851
851
|
*/
|
|
852
852
|
message: string;
|
|
853
853
|
}
|
|
854
|
+
interface TestEnqueue {
|
|
855
|
+
/**
|
|
856
|
+
* The test name
|
|
857
|
+
*/
|
|
858
|
+
name: string;
|
|
859
|
+
/**
|
|
860
|
+
* The path of the test file, undefined if test is not ran through a file.
|
|
861
|
+
*/
|
|
862
|
+
file?: string;
|
|
863
|
+
/**
|
|
864
|
+
* The nesting level of the test.
|
|
865
|
+
*/
|
|
866
|
+
nesting: number;
|
|
867
|
+
}
|
|
868
|
+
interface TestDequeue {
|
|
869
|
+
/**
|
|
870
|
+
* The test name
|
|
871
|
+
*/
|
|
872
|
+
name: string;
|
|
873
|
+
/**
|
|
874
|
+
* The path of the test file, undefined if test is not ran through a file.
|
|
875
|
+
*/
|
|
876
|
+
file?: string;
|
|
877
|
+
/**
|
|
878
|
+
* The nesting level of the test.
|
|
879
|
+
*/
|
|
880
|
+
nesting: number;
|
|
881
|
+
}
|
|
854
882
|
|
|
855
883
|
/**
|
|
856
884
|
* The `node:test/reporters` module exposes the builtin-reporters for `node:test`.
|
|
@@ -879,7 +907,10 @@ declare module 'node:test/reporters' {
|
|
|
879
907
|
| { type: 'test:plan', data: TestPlan }
|
|
880
908
|
| { type: 'test:start', data: TestStart }
|
|
881
909
|
| { type: 'test:stderr', data: TestStderr }
|
|
882
|
-
| { type: 'test:stdout', data: TestStdout }
|
|
910
|
+
| { type: 'test:stdout', data: TestStdout }
|
|
911
|
+
| { type: 'test:enqueue'; data: TestEnqueue }
|
|
912
|
+
| { type: 'test:dequeue'; data: TestDequeue }
|
|
913
|
+
| { type: 'test:watch:drained' };
|
|
883
914
|
type TestEventGenerator = AsyncGenerator<TestEvent, void>;
|
|
884
915
|
|
|
885
916
|
/**
|
|
@@ -898,5 +929,5 @@ declare module 'node:test/reporters' {
|
|
|
898
929
|
class Spec extends Transform {
|
|
899
930
|
constructor();
|
|
900
931
|
}
|
|
901
|
-
export { dot, tap, Spec as spec };
|
|
932
|
+
export { dot, tap, Spec as spec, TestEvent };
|
|
902
933
|
}
|
node v18.17/ts4.8/test.d.ts
CHANGED
|
@@ -737,7 +737,7 @@ interface TestFail {
|
|
|
737
737
|
/**
|
|
738
738
|
* The duration of the test in milliseconds.
|
|
739
739
|
*/
|
|
740
|
-
|
|
740
|
+
duration_ms: number;
|
|
741
741
|
/**
|
|
742
742
|
* The error thrown by the test.
|
|
743
743
|
*/
|
|
@@ -776,7 +776,7 @@ interface TestPass {
|
|
|
776
776
|
/**
|
|
777
777
|
* The duration of the test in milliseconds.
|
|
778
778
|
*/
|
|
779
|
-
|
|
779
|
+
duration_ms: number;
|
|
780
780
|
};
|
|
781
781
|
/**
|
|
782
782
|
* The test name.
|
|
@@ -851,6 +851,34 @@ interface TestStdout {
|
|
|
851
851
|
*/
|
|
852
852
|
message: string;
|
|
853
853
|
}
|
|
854
|
+
interface TestEnqueue {
|
|
855
|
+
/**
|
|
856
|
+
* The test name
|
|
857
|
+
*/
|
|
858
|
+
name: string;
|
|
859
|
+
/**
|
|
860
|
+
* The path of the test file, undefined if test is not ran through a file.
|
|
861
|
+
*/
|
|
862
|
+
file?: string;
|
|
863
|
+
/**
|
|
864
|
+
* The nesting level of the test.
|
|
865
|
+
*/
|
|
866
|
+
nesting: number;
|
|
867
|
+
}
|
|
868
|
+
interface TestDequeue {
|
|
869
|
+
/**
|
|
870
|
+
* The test name
|
|
871
|
+
*/
|
|
872
|
+
name: string;
|
|
873
|
+
/**
|
|
874
|
+
* The path of the test file, undefined if test is not ran through a file.
|
|
875
|
+
*/
|
|
876
|
+
file?: string;
|
|
877
|
+
/**
|
|
878
|
+
* The nesting level of the test.
|
|
879
|
+
*/
|
|
880
|
+
nesting: number;
|
|
881
|
+
}
|
|
854
882
|
|
|
855
883
|
/**
|
|
856
884
|
* The `node:test/reporters` module exposes the builtin-reporters for `node:test`.
|
|
@@ -879,7 +907,10 @@ declare module 'node:test/reporters' {
|
|
|
879
907
|
| { type: 'test:plan', data: TestPlan }
|
|
880
908
|
| { type: 'test:start', data: TestStart }
|
|
881
909
|
| { type: 'test:stderr', data: TestStderr }
|
|
882
|
-
| { type: 'test:stdout', data: TestStdout }
|
|
910
|
+
| { type: 'test:stdout', data: TestStdout }
|
|
911
|
+
| { type: 'test:enqueue'; data: TestEnqueue }
|
|
912
|
+
| { type: 'test:dequeue'; data: TestDequeue }
|
|
913
|
+
| { type: 'test:watch:drained' };
|
|
883
914
|
type TestEventGenerator = AsyncGenerator<TestEvent, void>;
|
|
884
915
|
|
|
885
916
|
/**
|
|
@@ -898,5 +929,5 @@ declare module 'node:test/reporters' {
|
|
|
898
929
|
class Spec extends Transform {
|
|
899
930
|
constructor();
|
|
900
931
|
}
|
|
901
|
-
export { dot, tap, Spec as spec };
|
|
932
|
+
export { dot, tap, Spec as spec, TestEvent };
|
|
902
933
|
}
|