Skip to content

Commit 933c58c

Browse files
vsemozhetbyttargos
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 4007d6c commit 933c58c

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
@@ -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
@@ -916,7 +918,7 @@ console.log(process.env.test);
916918
added: v0.7.7
917919
-->
918920

919-
* {Object}
921+
* {Array}
920922

921923
The `process.execArgv` property returns the set of Node.js-specific command-line
922924
options passed when the Node.js process was launched. These options do not
@@ -1245,6 +1247,8 @@ debugger, see [Signal Events][].
12451247
added: v0.1.17
12461248
-->
12471249

1250+
* {Object}
1251+
12481252
The `process.mainModule` property provides an alternative way of retrieving
12491253
[`require.main`][]. The difference is that if the main module changes at
12501254
runtime, [`require.main`][] may still refer to the original main module in
@@ -1474,6 +1478,8 @@ changes:
14741478
description: The `lts` property is now supported.
14751479
-->
14761480

1481+
* {Object}
1482+
14771483
The `process.release` property returns an Object containing metadata related to
14781484
the current release, including URLs for the source tarball and headers-only
14791485
tarball.

0 commit comments

Comments
 (0)