@types/node 18.17.2 → 18.17.4

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 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: Fri, 04 Aug 2023 00:33:04 GMT
11
+ * Last updated: Tue, 08 Aug 2023 20:32:44 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.17.2",
3
+ "version": "18.17.4",
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": "b6f6881e5a421ebfb565206b2dcb1b5dd8997fc894325c4dd94c8bab43ff1791",
235
+ "typesPublisherContentHash": "3abd50f14b356c90f131a6993eba60185a274d92cb1085db3e5a3569a4ef8dd3",
236
236
  "typeScriptVersion": "4.3"
237
237
  }
@@ -30,7 +30,7 @@
30
30
  */
31
31
  declare module 'perf_hooks' {
32
32
  import { AsyncResource } from 'node:async_hooks';
33
- type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http';
33
+ type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http' | 'dns';
34
34
  interface NodeGCPerformanceDetail {
35
35
  /**
36
36
  * When `performanceEntry.entryType` is equal to 'gc', `the performance.kind` property identifies
node v18.17/test.d.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  * @see [source](https://github.com/nodejs/node/blob/v18.x/lib/test.js)
4
4
  */
5
5
  declare module 'node:test' {
6
+ import { AsyncResource } from 'node:async_hooks';
6
7
  /**
7
8
  * Programmatically start the test runner.
8
9
  * @since v18.9.0
@@ -205,6 +206,19 @@ declare module 'node:test' {
205
206
  * incremented from the primary's `process.debugPort`.
206
207
  */
207
208
  inspectPort?: number | (() => number) | undefined;
209
+ /**
210
+ * A function that accepts the TestsStream instance and can be used to setup listeners before any tests are run.
211
+ */
212
+ setup?: (root: Test) => void | Promise<void>;
213
+ }
214
+ class Test extends AsyncResource {
215
+ concurrency: number;
216
+ nesting: number;
217
+ only: boolean;
218
+ reporter: TestsStream;
219
+ runOnlySubtests: boolean;
220
+ testNumber: number;
221
+ timeout: number | null;
208
222
  }
209
223
 
210
224
  /**