Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add types for some process properties #19571

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,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 @@ -921,7 +923,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 @@ -1250,6 +1252,8 @@ 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 @@ -1479,6 +1483,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