@types/node 18.16.10 → 18.16.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 v18.16/README.md +1 -1
- node v18.16/package.json +2 -2
- node v18.16/test.d.ts +12 -18
- node v18.16/ts4.8/test.d.ts +12 -18
node v18.16/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: Tue, 16 May 2023
|
|
11
|
+
* Last updated: Tue, 16 May 2023 19:02:58 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.16/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.16.
|
|
3
|
+
"version": "18.16.11",
|
|
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": "b0e00953c949cc2b26638ad9dbebd702ba52c9262b52efcb0b47da2f640ed13c",
|
|
236
236
|
"typeScriptVersion": "4.3"
|
|
237
237
|
}
|
node v18.16/test.d.ts
CHANGED
|
@@ -83,22 +83,22 @@ declare module 'node:test' {
|
|
|
83
83
|
* @param fn The function under test. If the test uses callbacks, the callback function is
|
|
84
84
|
* passed as the second argument. Default: A no-op function.
|
|
85
85
|
*/
|
|
86
|
-
function it(name?: string, options?: TestOptions, fn?:
|
|
87
|
-
function it(name?: string, fn?:
|
|
88
|
-
function it(options?: TestOptions, fn?:
|
|
89
|
-
function it(fn?:
|
|
86
|
+
function it(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
87
|
+
function it(name?: string, fn?: TestFn): void;
|
|
88
|
+
function it(options?: TestOptions, fn?: TestFn): void;
|
|
89
|
+
function it(fn?: TestFn): void;
|
|
90
90
|
namespace it {
|
|
91
91
|
// Shorthand for skipping a test, same as `it([name], { skip: true }[, fn])`.
|
|
92
|
-
function skip(name?: string, options?: TestOptions, fn?:
|
|
93
|
-
function skip(name?: string, fn?:
|
|
94
|
-
function skip(options?: TestOptions, fn?:
|
|
95
|
-
function skip(fn?:
|
|
92
|
+
function skip(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
93
|
+
function skip(name?: string, fn?: TestFn): void;
|
|
94
|
+
function skip(options?: TestOptions, fn?: TestFn): void;
|
|
95
|
+
function skip(fn?: TestFn): void;
|
|
96
96
|
|
|
97
97
|
// Shorthand for marking a test as `TODO`, same as `it([name], { todo: true }[, fn])`.
|
|
98
|
-
function todo(name?: string, options?: TestOptions, fn?:
|
|
99
|
-
function todo(name?: string, fn?:
|
|
100
|
-
function todo(options?: TestOptions, fn?:
|
|
101
|
-
function todo(fn?:
|
|
98
|
+
function todo(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
99
|
+
function todo(name?: string, fn?: TestFn): void;
|
|
100
|
+
function todo(options?: TestOptions, fn?: TestFn): void;
|
|
101
|
+
function todo(fn?: TestFn): void;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
@@ -114,12 +114,6 @@ declare module 'node:test' {
|
|
|
114
114
|
*/
|
|
115
115
|
type SuiteFn = (done: (result?: any) => void) => void;
|
|
116
116
|
|
|
117
|
-
/**
|
|
118
|
-
* The type of a function under test.
|
|
119
|
-
* If the test uses callbacks, the callback function is passed as an argument
|
|
120
|
-
*/
|
|
121
|
-
type ItFn = (done: (result?: any) => void) => any;
|
|
122
|
-
|
|
123
117
|
interface RunOptions {
|
|
124
118
|
/**
|
|
125
119
|
* If a number is provided, then that many files would run in parallel.
|
node v18.16/ts4.8/test.d.ts
CHANGED
|
@@ -83,22 +83,22 @@ declare module 'node:test' {
|
|
|
83
83
|
* @param fn The function under test. If the test uses callbacks, the callback function is
|
|
84
84
|
* passed as the second argument. Default: A no-op function.
|
|
85
85
|
*/
|
|
86
|
-
function it(name?: string, options?: TestOptions, fn?:
|
|
87
|
-
function it(name?: string, fn?:
|
|
88
|
-
function it(options?: TestOptions, fn?:
|
|
89
|
-
function it(fn?:
|
|
86
|
+
function it(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
87
|
+
function it(name?: string, fn?: TestFn): void;
|
|
88
|
+
function it(options?: TestOptions, fn?: TestFn): void;
|
|
89
|
+
function it(fn?: TestFn): void;
|
|
90
90
|
namespace it {
|
|
91
91
|
// Shorthand for skipping a test, same as `it([name], { skip: true }[, fn])`.
|
|
92
|
-
function skip(name?: string, options?: TestOptions, fn?:
|
|
93
|
-
function skip(name?: string, fn?:
|
|
94
|
-
function skip(options?: TestOptions, fn?:
|
|
95
|
-
function skip(fn?:
|
|
92
|
+
function skip(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
93
|
+
function skip(name?: string, fn?: TestFn): void;
|
|
94
|
+
function skip(options?: TestOptions, fn?: TestFn): void;
|
|
95
|
+
function skip(fn?: TestFn): void;
|
|
96
96
|
|
|
97
97
|
// Shorthand for marking a test as `TODO`, same as `it([name], { todo: true }[, fn])`.
|
|
98
|
-
function todo(name?: string, options?: TestOptions, fn?:
|
|
99
|
-
function todo(name?: string, fn?:
|
|
100
|
-
function todo(options?: TestOptions, fn?:
|
|
101
|
-
function todo(fn?:
|
|
98
|
+
function todo(name?: string, options?: TestOptions, fn?: TestFn): void;
|
|
99
|
+
function todo(name?: string, fn?: TestFn): void;
|
|
100
|
+
function todo(options?: TestOptions, fn?: TestFn): void;
|
|
101
|
+
function todo(fn?: TestFn): void;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
@@ -114,12 +114,6 @@ declare module 'node:test' {
|
|
|
114
114
|
*/
|
|
115
115
|
type SuiteFn = (done: (result?: any) => void) => void;
|
|
116
116
|
|
|
117
|
-
/**
|
|
118
|
-
* The type of a function under test.
|
|
119
|
-
* If the test uses callbacks, the callback function is passed as an argument
|
|
120
|
-
*/
|
|
121
|
-
type ItFn = (done: (result?: any) => void) => any;
|
|
122
|
-
|
|
123
117
|
interface RunOptions {
|
|
124
118
|
/**
|
|
125
119
|
* If a number is provided, then that many files would run in parallel.
|