@types/node 20.11.0 → 20.11.2
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/module.d.ts +2 -2
- node/package.json +2 -2
- node/process.d.ts +17 -0
- node/ts4.8/module.d.ts +2 -2
- 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 11:35:33 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node/module.d.ts
CHANGED
|
@@ -280,13 +280,13 @@ declare module "module" {
|
|
|
280
280
|
* The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`.
|
|
281
281
|
* **Caveat:** only present on `file:` modules.
|
|
282
282
|
*/
|
|
283
|
-
dirname
|
|
283
|
+
dirname: string;
|
|
284
284
|
/**
|
|
285
285
|
* The full absolute path and filename of the current module, with symlinks resolved.
|
|
286
286
|
* This is the same as the `url.fileURLToPath()` of the `import.meta.url`.
|
|
287
287
|
* **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it.
|
|
288
288
|
*/
|
|
289
|
-
filename
|
|
289
|
+
filename: string;
|
|
290
290
|
/**
|
|
291
291
|
* The absolute `file:` URL of the module.
|
|
292
292
|
*/
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.11.
|
|
3
|
+
"version": "20.11.2",
|
|
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": "41e39984afcbd704058054c5e2fb980168b49f48c8ab2f12279459bd42550ac4",
|
|
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/module.d.ts
CHANGED
|
@@ -280,13 +280,13 @@ declare module "module" {
|
|
|
280
280
|
* The directory name of the current module. This is the same as the `path.dirname()` of the `import.meta.filename`.
|
|
281
281
|
* **Caveat:** only present on `file:` modules.
|
|
282
282
|
*/
|
|
283
|
-
dirname
|
|
283
|
+
dirname: string;
|
|
284
284
|
/**
|
|
285
285
|
* The full absolute path and filename of the current module, with symlinks resolved.
|
|
286
286
|
* This is the same as the `url.fileURLToPath()` of the `import.meta.url`.
|
|
287
287
|
* **Caveat:** only local modules support this property. Modules not using the `file:` protocol will not provide it.
|
|
288
288
|
*/
|
|
289
|
-
filename
|
|
289
|
+
filename: string;
|
|
290
290
|
/**
|
|
291
291
|
* The absolute `file:` URL of the module.
|
|
292
292
|
*/
|
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.
|