@types/node 20.17.39 → 20.17.40
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 v20.17/README.md +1 -1
- node v20.17/cluster.d.ts +1 -1
- node v20.17/diagnostics_channel.d.ts +19 -0
- node v20.17/package.json +2 -2
node v20.17/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/v20.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated: Tue, 06 May 2025
|
11
|
+
* Last updated: Tue, 06 May 2025 02:14:23 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node v20.17/cluster.d.ts
CHANGED
@@ -265,7 +265,7 @@ declare module "cluster" {
|
|
265
265
|
* @since v0.7.7
|
266
266
|
* @return A reference to `worker`.
|
267
267
|
*/
|
268
|
-
disconnect():
|
268
|
+
disconnect(): this;
|
269
269
|
/**
|
270
270
|
* This function returns `true` if the worker is connected to its primary via its
|
271
271
|
* IPC channel, `false` otherwise. A worker is connected to its primary after it
|
@@ -547,6 +547,25 @@ declare module "diagnostics_channel" {
|
|
547
547
|
thisArg: any,
|
548
548
|
...args: Parameters<Fn>
|
549
549
|
): void;
|
550
|
+
/**
|
551
|
+
* `true` if any of the individual channels has a subscriber, `false` if not.
|
552
|
+
*
|
553
|
+
* This is a helper method available on a {@link TracingChannel} instance to check
|
554
|
+
* if any of the [TracingChannel Channels](https://nodejs.org/api/diagnostics_channel.html#tracingchannel-channels) have subscribers.
|
555
|
+
* A `true` is returned if any of them have at least one subscriber, a `false` is returned otherwise.
|
556
|
+
*
|
557
|
+
* ```js
|
558
|
+
* const diagnostics_channel = require('node:diagnostics_channel');
|
559
|
+
*
|
560
|
+
* const channels = diagnostics_channel.tracingChannel('my-channel');
|
561
|
+
*
|
562
|
+
* if (channels.hasSubscribers) {
|
563
|
+
* // Do something
|
564
|
+
* }
|
565
|
+
* ```
|
566
|
+
* @since v22.0.0, v20.13.0
|
567
|
+
*/
|
568
|
+
readonly hasSubscribers: boolean;
|
550
569
|
}
|
551
570
|
}
|
552
571
|
declare module "node:diagnostics_channel" {
|
node v20.17/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "20.17.
|
3
|
+
"version": "20.17.40",
|
4
4
|
"description": "TypeScript definitions for node",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
6
6
|
"license": "MIT",
|
@@ -215,6 +215,6 @@
|
|
215
215
|
"undici-types": "~6.19.2"
|
216
216
|
},
|
217
217
|
"peerDependencies": {},
|
218
|
-
"typesPublisherContentHash": "
|
218
|
+
"typesPublisherContentHash": "c446d225ba395160537169319ad5d5dc21e62fe91a3075ffbe9971c6c4a7e325",
|
219
219
|
"typeScriptVersion": "5.1"
|
220
220
|
}
|