@types/node 18.19.109 → 18.19.110

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.19/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for node (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, 30 May 2025 15:02:22 GMT
11
+ * Last updated: Fri, 30 May 2025 18:40:02 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -298,7 +298,12 @@ declare module "diagnostics_channel" {
298
298
  * @param thisArg The receiver to be used for the function call.
299
299
  * @param args Optional arguments to pass to the function.
300
300
  */
301
- runStores(): void;
301
+ runStores<ThisArg = any, Args extends any[] = any[], Result = any>(
302
+ context: ContextType,
303
+ fn: (this: ThisArg, ...args: Args) => Result,
304
+ thisArg?: ThisArg,
305
+ ...args: Args
306
+ ): Result;
302
307
  }
303
308
  interface TracingChannelSubscribers<ContextType extends object> {
304
309
  start: (message: ContextType) => void;
@@ -439,12 +444,12 @@ declare module "diagnostics_channel" {
439
444
  * @param args Optional arguments to pass to the function
440
445
  * @return The return value of the given function
441
446
  */
442
- traceSync<ThisArg = any, Args extends any[] = any[]>(
443
- fn: (this: ThisArg, ...args: Args) => any,
447
+ traceSync<ThisArg = any, Args extends any[] = any[], Result = any>(
448
+ fn: (this: ThisArg, ...args: Args) => Result,
444
449
  context?: ContextType,
445
450
  thisArg?: ThisArg,
446
451
  ...args: Args
447
- ): void;
452
+ ): Result;
448
453
  /**
449
454
  * Trace a promise-returning function call. This will always produce a `start event` and `end event` around the synchronous portion of the
450
455
  * function execution, and will produce an `asyncStart event` and `asyncEnd event` when a promise continuation is reached. It may also
@@ -471,12 +476,12 @@ declare module "diagnostics_channel" {
471
476
  * @param args Optional arguments to pass to the function
472
477
  * @return Chained from promise returned by the given function
473
478
  */
474
- tracePromise<ThisArg = any, Args extends any[] = any[]>(
475
- fn: (this: ThisArg, ...args: Args) => Promise<any>,
479
+ tracePromise<ThisArg = any, Args extends any[] = any[], Result = any>(
480
+ fn: (this: ThisArg, ...args: Args) => Promise<Result>,
476
481
  context?: ContextType,
477
482
  thisArg?: ThisArg,
478
483
  ...args: Args
479
- ): void;
484
+ ): Promise<Result>;
480
485
  /**
481
486
  * Trace a callback-receiving function call. This will always produce a `start event` and `end event` around the synchronous portion of the
482
487
  * function execution, and will produce a `asyncStart event` and `asyncEnd event` around the callback execution. It may also produce an `error event` if the given function throws an error or
@@ -532,13 +537,13 @@ declare module "diagnostics_channel" {
532
537
  * @param args Optional arguments to pass to the function
533
538
  * @return The return value of the given function
534
539
  */
535
- traceCallback<Fn extends (this: any, ...args: any) => any>(
536
- fn: Fn,
537
- position: number | undefined,
538
- context: ContextType | undefined,
539
- thisArg: any,
540
- ...args: Parameters<Fn>
541
- ): void;
540
+ traceCallback<ThisArg = any, Args extends any[] = any[], Result = any>(
541
+ fn: (this: ThisArg, ...args: Args) => Result,
542
+ position?: number,
543
+ context?: ContextType,
544
+ thisArg?: ThisArg,
545
+ ...args: Args
546
+ ): Result;
542
547
  }
543
548
  }
544
549
  declare module "node:diagnostics_channel" {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.19.109",
3
+ "version": "18.19.110",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  "undici-types": "~5.26.4"
221
221
  },
222
222
  "peerDependencies": {},
223
- "typesPublisherContentHash": "46682b3711d884eb5d397d9e6c7c06611150af9d740d4843cb867c16ccd556a6",
223
+ "typesPublisherContentHash": "c578f747556346561055fe4dfe14f92b282f74f66a07b17d635c1ebdd9b4b527",
224
224
  "typeScriptVersion": "5.1"
225
225
  }