@types/node 20.1.7 → 20.2.0

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 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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 16 May 2023 20:02:56 GMT
11
+ * Last updated: Wed, 17 May 2023 23:32:57 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
node/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for non-npm package Node.js 20.1
1
+ // Type definitions for non-npm package Node.js 20.2
2
2
  // Project: https://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.1.7",
3
+ "version": "20.2.0",
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": "66c03deccac83a7d603defb282c78bd668ddc17b46fda8c94bc538f577bb3567",
235
+ "typesPublisherContentHash": "de42ebcc68df0da911bfa6137aff9ec2506168d7f7d2cafc27994b22bbc119f7",
236
236
  "typeScriptVersion": "4.3"
237
237
  }
node/test.d.ts CHANGED
@@ -135,6 +135,29 @@ declare module 'node:test' {
135
135
  function test(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
136
136
  function test(options?: TestOptions, fn?: TestFn): Promise<void>;
137
137
  function test(fn?: TestFn): Promise<void>;
138
+ namespace test {
139
+ /**
140
+ * Shorthand for skipping a suite, same as `test([name], { skip: true }[, fn])`.
141
+ */
142
+ function skip(name?: string, options?: TestOptions, fn?: TestFn): void;
143
+ function skip(name?: string, fn?: TestFn): void;
144
+ function skip(options?: TestOptions, fn?: TestFn): void;
145
+ function skip(fn?: TestFn): void;
146
+ /**
147
+ * Shorthand for marking a suite as `TODO`, same as `test([name], { todo: true }[, fn])`.
148
+ */
149
+ function todo(name?: string, options?: TestOptions, fn?: TestFn): void;
150
+ function todo(name?: string, fn?: TestFn): void;
151
+ function todo(options?: TestOptions, fn?: TestFn): void;
152
+ function todo(fn?: TestFn): void;
153
+ /**
154
+ * Shorthand for marking a suite as `TODO`, same as `test([name], { only: true }[, fn])`.
155
+ */
156
+ function only(name?: string, options?: TestOptions, fn?: TestFn): void;
157
+ function only(name?: string, fn?: TestFn): void;
158
+ function only(options?: TestOptions, fn?: TestFn): void;
159
+ function only(fn?: TestFn): void;
160
+ }
138
161
  /**
139
162
  * The `describe()` function imported from the `node:test` module. Each
140
163
  * invocation of this function results in the creation of a Subtest.
@@ -164,6 +187,13 @@ declare module 'node:test' {
164
187
  function todo(name?: string, fn?: SuiteFn): void;
165
188
  function todo(options?: TestOptions, fn?: SuiteFn): void;
166
189
  function todo(fn?: SuiteFn): void;
190
+ /**
191
+ * Shorthand for marking a suite as `TODO`, same as `describe([name], { only: true }[, fn])`.
192
+ */
193
+ function only(name?: string, options?: TestOptions, fn?: SuiteFn): void;
194
+ function only(name?: string, fn?: SuiteFn): void;
195
+ function only(options?: TestOptions, fn?: SuiteFn): void;
196
+ function only(fn?: SuiteFn): void;
167
197
  }
168
198
  /**
169
199
  * Shorthand for `test()`.
@@ -186,6 +216,13 @@ declare module 'node:test' {
186
216
  function todo(name?: string, fn?: TestFn): void;
187
217
  function todo(options?: TestOptions, fn?: TestFn): void;
188
218
  function todo(fn?: TestFn): void;
219
+ /**
220
+ * Shorthand for marking a suite as `TODO`, same as `it([name], { only: true }[, fn])`.
221
+ */
222
+ function only(name?: string, options?: TestOptions, fn?: TestFn): void;
223
+ function only(name?: string, fn?: TestFn): void;
224
+ function only(options?: TestOptions, fn?: TestFn): void;
225
+ function only(fn?: TestFn): void;
189
226
  }
190
227
  /**
191
228
  * The type of a function under test. The first argument to this function is a
node/ts4.8/test.d.ts CHANGED
@@ -135,6 +135,29 @@ declare module 'node:test' {
135
135
  function test(name?: string, options?: TestOptions, fn?: TestFn): Promise<void>;
136
136
  function test(options?: TestOptions, fn?: TestFn): Promise<void>;
137
137
  function test(fn?: TestFn): Promise<void>;
138
+ namespace test {
139
+ /**
140
+ * Shorthand for skipping a suite, same as `test([name], { skip: true }[, fn])`.
141
+ */
142
+ function skip(name?: string, options?: TestOptions, fn?: TestFn): void;
143
+ function skip(name?: string, fn?: TestFn): void;
144
+ function skip(options?: TestOptions, fn?: TestFn): void;
145
+ function skip(fn?: TestFn): void;
146
+ /**
147
+ * Shorthand for marking a suite as `TODO`, same as `test([name], { todo: true }[, fn])`.
148
+ */
149
+ function todo(name?: string, options?: TestOptions, fn?: TestFn): void;
150
+ function todo(name?: string, fn?: TestFn): void;
151
+ function todo(options?: TestOptions, fn?: TestFn): void;
152
+ function todo(fn?: TestFn): void;
153
+ /**
154
+ * Shorthand for marking a suite as `TODO`, same as `test([name], { only: true }[, fn])`.
155
+ */
156
+ function only(name?: string, options?: TestOptions, fn?: TestFn): void;
157
+ function only(name?: string, fn?: TestFn): void;
158
+ function only(options?: TestOptions, fn?: TestFn): void;
159
+ function only(fn?: TestFn): void;
160
+ }
138
161
  /**
139
162
  * The `describe()` function imported from the `node:test` module. Each
140
163
  * invocation of this function results in the creation of a Subtest.
@@ -164,6 +187,13 @@ declare module 'node:test' {
164
187
  function todo(name?: string, fn?: SuiteFn): void;
165
188
  function todo(options?: TestOptions, fn?: SuiteFn): void;
166
189
  function todo(fn?: SuiteFn): void;
190
+ /**
191
+ * Shorthand for marking a suite as `TODO`, same as `describe([name], { only: true }[, fn])`.
192
+ */
193
+ function only(name?: string, options?: TestOptions, fn?: SuiteFn): void;
194
+ function only(name?: string, fn?: SuiteFn): void;
195
+ function only(options?: TestOptions, fn?: SuiteFn): void;
196
+ function only(fn?: SuiteFn): void;
167
197
  }
168
198
  /**
169
199
  * Shorthand for `test()`.
@@ -186,6 +216,13 @@ declare module 'node:test' {
186
216
  function todo(name?: string, fn?: ItFn): void;
187
217
  function todo(options?: TestOptions, fn?: ItFn): void;
188
218
  function todo(fn?: ItFn): void;
219
+ /**
220
+ * Shorthand for marking a suite as `TODO`, same as `it([name], { only: true }[, fn])`.
221
+ */
222
+ function only(name?: string, options?: TestOptions, fn?: ItFn): void;
223
+ function only(name?: string, fn?: ItFn): void;
224
+ function only(options?: TestOptions, fn?: ItFn): void;
225
+ function only(fn?: ItFn): void;
189
226
  }
190
227
  /**
191
228
  * The type of a function under test. The first argument to this function is a