@types/node 20.11.0 → 20.11.1
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 +1 -1
- node/package.json +2 -2
- node/process.d.ts +17 -0
- node/ts4.8/process.d.ts +17 -0
node/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.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 15 Jan 2024 04:07:53 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.11.
|
|
3
|
+
"version": "20.11.1",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"dependencies": {
|
|
225
225
|
"undici-types": "~5.26.4"
|
|
226
226
|
},
|
|
227
|
-
"typesPublisherContentHash": "
|
|
227
|
+
"typesPublisherContentHash": "72bb627c28cb083a2dfb425e00616f0537b9722bf7784a8bebbe37aad9154842",
|
|
228
228
|
"typeScriptVersion": "4.6",
|
|
229
229
|
"nonNpm": true
|
|
230
230
|
}
|
node/process.d.ts
CHANGED
|
@@ -1316,6 +1316,23 @@ declare module "process" {
|
|
|
1316
1316
|
*/
|
|
1317
1317
|
uptime(): number;
|
|
1318
1318
|
hrtime: HRTime;
|
|
1319
|
+
/**
|
|
1320
|
+
* If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel.
|
|
1321
|
+
* If no IPC channel exists, this property is undefined.
|
|
1322
|
+
* @since v7.1.0
|
|
1323
|
+
*/
|
|
1324
|
+
channel?: {
|
|
1325
|
+
/**
|
|
1326
|
+
* This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
|
|
1327
|
+
* @since v7.1.0
|
|
1328
|
+
*/
|
|
1329
|
+
ref(): void;
|
|
1330
|
+
/**
|
|
1331
|
+
* This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
|
|
1332
|
+
* @since v7.1.0
|
|
1333
|
+
*/
|
|
1334
|
+
unref(): void;
|
|
1335
|
+
};
|
|
1319
1336
|
/**
|
|
1320
1337
|
* If Node.js is spawned with an IPC channel, the `process.send()` method can be
|
|
1321
1338
|
* used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
|
node/ts4.8/process.d.ts
CHANGED
|
@@ -1316,6 +1316,23 @@ declare module "process" {
|
|
|
1316
1316
|
*/
|
|
1317
1317
|
uptime(): number;
|
|
1318
1318
|
hrtime: HRTime;
|
|
1319
|
+
/**
|
|
1320
|
+
* If the Node.js process was spawned with an IPC channel, the process.channel property is a reference to the IPC channel.
|
|
1321
|
+
* If no IPC channel exists, this property is undefined.
|
|
1322
|
+
* @since v7.1.0
|
|
1323
|
+
*/
|
|
1324
|
+
channel?: {
|
|
1325
|
+
/**
|
|
1326
|
+
* This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
|
|
1327
|
+
* @since v7.1.0
|
|
1328
|
+
*/
|
|
1329
|
+
ref(): void;
|
|
1330
|
+
/**
|
|
1331
|
+
* This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
|
|
1332
|
+
* @since v7.1.0
|
|
1333
|
+
*/
|
|
1334
|
+
unref(): void;
|
|
1335
|
+
};
|
|
1319
1336
|
/**
|
|
1320
1337
|
* If Node.js is spawned with an IPC channel, the `process.send()` method can be
|
|
1321
1338
|
* used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
|