@types/node
Advanced tools
@@ -36,3 +36,6 @@ declare module "node:diagnostics_channel" { | ||
| */ | ||
| function channel(name: string | symbol): Channel; | ||
| // eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
| function channel<ContextType = any, StoreType = ContextType>( | ||
| name: string | symbol, | ||
| ): Channel<ContextType, StoreType>; | ||
| type ChannelListener = (message: unknown, name: string | symbol) => void; | ||
@@ -100,8 +103,5 @@ /** | ||
| */ | ||
| function tracingChannel< | ||
| StoreType = unknown, | ||
| ContextType extends object = StoreType extends object ? StoreType : object, | ||
| >( | ||
| nameOrChannels: string | TracingChannelCollection<StoreType, ContextType>, | ||
| ): TracingChannel<StoreType, ContextType>; | ||
| function tracingChannel<ContextType extends object = object, StoreType = ContextType>( | ||
| nameOrChannels: string | TracingChannelCollection<ContextType, StoreType>, | ||
| ): TracingChannel<ContextType, StoreType>; | ||
| /** | ||
@@ -116,3 +116,3 @@ * The class `Channel` represents an individual named channel within the data | ||
| */ | ||
| class Channel<StoreType = unknown, ContextType = StoreType> { | ||
| class Channel<ContextType = any, StoreType = ContextType> { | ||
| readonly name: string | symbol; | ||
@@ -310,8 +310,8 @@ /** | ||
| } | ||
| interface TracingChannelCollection<StoreType = unknown, ContextType = StoreType> { | ||
| start: Channel<StoreType, ContextType>; | ||
| end: Channel<StoreType, ContextType>; | ||
| asyncStart: Channel<StoreType, ContextType>; | ||
| asyncEnd: Channel<StoreType, ContextType>; | ||
| error: Channel<StoreType, ContextType>; | ||
| interface TracingChannelCollection<ContextType extends object = object, StoreType = ContextType> { | ||
| start: Channel<ContextType, StoreType>; | ||
| end: Channel<ContextType, StoreType>; | ||
| asyncStart: Channel<ContextType, StoreType>; | ||
| asyncEnd: Channel<ContextType, StoreType>; | ||
| error: Channel<ContextType, StoreType>; | ||
| } | ||
@@ -327,8 +327,5 @@ /** | ||
| */ | ||
| class TracingChannel<StoreType = unknown, ContextType extends object = {}> implements TracingChannelCollection { | ||
| start: Channel<StoreType, ContextType>; | ||
| end: Channel<StoreType, ContextType>; | ||
| asyncStart: Channel<StoreType, ContextType>; | ||
| asyncEnd: Channel<StoreType, ContextType>; | ||
| error: Channel<StoreType, ContextType>; | ||
| interface TracingChannel<ContextType extends object = object, StoreType = ContextType> | ||
| extends TracingChannelCollection<ContextType, StoreType> | ||
| { | ||
| /** | ||
@@ -335,0 +332,0 @@ * Helper to subscribe a collection of functions to the corresponding channels. |
| { | ||
| "name": "@types/node", | ||
| "version": "26.0.0", | ||
| "version": "26.0.1", | ||
| "description": "TypeScript definitions for node", | ||
@@ -153,4 +153,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "b97b21d94288bc153e105a65f4c8fe609dd471f179c5bbd931ba27f959bd0744", | ||
| "typesPublisherContentHash": "a354aaa75dcea5eab474337cc3c7f8ab35ebed8c28d8cdb987dc31049b0fc0c6", | ||
| "typeScriptVersion": "5.6" | ||
| } |
+1
-1
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Fri, 19 Jun 2026 07:14:38 GMT | ||
| * Last updated: Wed, 24 Jun 2026 20:32:59 GMT | ||
| * Dependencies: [undici-types](https://npmjs.com/package/undici-types) | ||
@@ -14,0 +14,0 @@ |
2386850
053077
-0.01%