Skip to content

Commit 63d8632

Browse files
vsemozhetbytBethGriggs
authored andcommitted
doc: add types for some process properties
PR-URL: #19571 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent b2fc3b5 commit 63d8632

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/api/process.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ $ bash -c 'exec -a customArgv0 ./node'
499499
added: v7.1.0
500500
-->
501501

502+
* {Object}
503+
502504
If the Node.js process was spawned with an IPC channel (see the
503505
[Child Process][] documentation), the `process.channel`
504506
property is a reference to the IPC channel. If no IPC channel exists, this
@@ -884,7 +886,7 @@ console.log(process.env.test);
884886
added: v0.7.7
885887
-->
886888

887-
* {Object}
889+
* {Array}
888890

889891
The `process.execArgv` property returns the set of Node.js-specific command-line
890892
options passed when the Node.js process was launched. These options do not
@@ -1210,6 +1212,8 @@ the debugger, see [Signal Events][].
12101212
added: v0.1.17
12111213
-->
12121214

1215+
* {Object}
1216+
12131217
The `process.mainModule` property provides an alternative way of retrieving
12141218
[`require.main`][]. The difference is that if the main module changes at
12151219
runtime, [`require.main`][] may still refer to the original main module in
@@ -1439,6 +1443,8 @@ changes:
14391443
description: The `lts` property is now supported.
14401444
-->
14411445

1446+
* {Object}
1447+
14421448
The `process.release` property returns an Object containing metadata related to
14431449
the current release, including URLs for the source tarball and headers-only
14441450
tarball.

0 commit comments

Comments
 (0)