@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 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 01:02:59 GMT
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
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.16.10",
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": "0d6ee9c130ab365e2ced44609fa36560ff5c46e1f915f76741605fb57436705e",
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?: ItFn): void;
87
- function it(name?: string, fn?: ItFn): void;
88
- function it(options?: TestOptions, fn?: ItFn): void;
89
- function it(fn?: ItFn): void;
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?: ItFn): void;
93
- function skip(name?: string, fn?: ItFn): void;
94
- function skip(options?: TestOptions, fn?: ItFn): void;
95
- function skip(fn?: ItFn): void;
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?: ItFn): void;
99
- function todo(name?: string, fn?: ItFn): void;
100
- function todo(options?: TestOptions, fn?: ItFn): void;
101
- function todo(fn?: ItFn): void;
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.
@@ -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?: ItFn): void;
87
- function it(name?: string, fn?: ItFn): void;
88
- function it(options?: TestOptions, fn?: ItFn): void;
89
- function it(fn?: ItFn): void;
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?: ItFn): void;
93
- function skip(name?: string, fn?: ItFn): void;
94
- function skip(options?: TestOptions, fn?: ItFn): void;
95
- function skip(fn?: ItFn): void;
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?: ItFn): void;
99
- function todo(name?: string, fn?: ItFn): void;
100
- function todo(options?: TestOptions, fn?: ItFn): void;
101
- function todo(fn?: ItFn): void;
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.