Skip to content

Commit

Permalink
doc: add types for some process properties
Browse files Browse the repository at this point in the history
PR-URL: #19571
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
vsemozhetbyt authored and BethGriggs committed Dec 3, 2018
1 parent b2fc3b5 commit 63d8632
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,8 @@ $ bash -c 'exec -a customArgv0 ./node'
added: v7.1.0
-->

* {Object}

If the Node.js process was spawned with an IPC channel (see the
[Child Process][] documentation), the `process.channel`
property is a reference to the IPC channel. If no IPC channel exists, this
Expand Down Expand Up @@ -884,7 +886,7 @@ console.log(process.env.test);
added: v0.7.7
-->

* {Object}
* {Array}

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

* {Object}

The `process.mainModule` property provides an alternative way of retrieving
[`require.main`][]. The difference is that if the main module changes at
runtime, [`require.main`][] may still refer to the original main module in
Expand Down Expand Up @@ -1439,6 +1443,8 @@ changes:
description: The `lts` property is now supported.
-->

* {Object}

The `process.release` property returns an Object containing metadata related to
the current release, including URLs for the source tarball and headers-only
tarball.
Expand Down

0 comments on commit 63d8632

Please sign in to comment.