Skip to content

Commit d59e249

Browse files
committed
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 5d6d1fe commit d59e249

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/api/process.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,8 @@ $ bash -c 'exec -a customArgv0 ./node'
489489
added: v7.1.0
490490
-->
491491

492+
* {Object}
493+
492494
If the Node.js process was spawned with an IPC channel (see the
493495
[Child Process][] documentation), the `process.channel`
494496
property is a reference to the IPC channel. If no IPC channel exists, this
@@ -921,7 +923,7 @@ console.log(process.env.test);
921923
added: v0.7.7
922924
-->
923925

924-
* {Object}
926+
* {Array}
925927

926928
The `process.execArgv` property returns the set of Node.js-specific command-line
927929
options passed when the Node.js process was launched. These options do not
@@ -1250,6 +1252,8 @@ debugger, see [Signal Events][].
12501252
added: v0.1.17
12511253
-->
12521254

1255+
* {Object}
1256+
12531257
The `process.mainModule` property provides an alternative way of retrieving
12541258
[`require.main`][]. The difference is that if the main module changes at
12551259
runtime, [`require.main`][] may still refer to the original main module in
@@ -1479,6 +1483,8 @@ changes:
14791483
description: The `lts` property is now supported.
14801484
-->
14811485

1486+
* {Object}
1487+
14821488
The `process.release` property returns an Object containing metadata related to
14831489
the current release, including URLs for the source tarball and headers-only
14841490
tarball.

0 commit comments

Comments
 (0)