doc: add types for some process
properties
PR-URL: https://github.com/nodejs/node/pull/19571 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
5d6d1fedcf
commit
d59e2492f5
@ -489,6 +489,8 @@ $ bash -c 'exec -a customArgv0 ./node'
|
|||||||
added: v7.1.0
|
added: v7.1.0
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
* {Object}
|
||||||
|
|
||||||
If the Node.js process was spawned with an IPC channel (see the
|
If the Node.js process was spawned with an IPC channel (see the
|
||||||
[Child Process][] documentation), the `process.channel`
|
[Child Process][] documentation), the `process.channel`
|
||||||
property is a reference to the IPC channel. If no IPC channel exists, this
|
property is a reference to the IPC channel. If no IPC channel exists, this
|
||||||
@ -921,7 +923,7 @@ console.log(process.env.test);
|
|||||||
added: v0.7.7
|
added: v0.7.7
|
||||||
-->
|
-->
|
||||||
|
|
||||||
* {Object}
|
* {Array}
|
||||||
|
|
||||||
The `process.execArgv` property returns the set of Node.js-specific command-line
|
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
|
options passed when the Node.js process was launched. These options do not
|
||||||
@ -1250,6 +1252,8 @@ debugger, see [Signal Events][].
|
|||||||
added: v0.1.17
|
added: v0.1.17
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
* {Object}
|
||||||
|
|
||||||
The `process.mainModule` property provides an alternative way of retrieving
|
The `process.mainModule` property provides an alternative way of retrieving
|
||||||
[`require.main`][]. The difference is that if the main module changes at
|
[`require.main`][]. The difference is that if the main module changes at
|
||||||
runtime, [`require.main`][] may still refer to the original main module in
|
runtime, [`require.main`][] may still refer to the original main module in
|
||||||
@ -1479,6 +1483,8 @@ changes:
|
|||||||
description: The `lts` property is now supported.
|
description: The `lts` property is now supported.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
* {Object}
|
||||||
|
|
||||||
The `process.release` property returns an Object containing metadata related to
|
The `process.release` property returns an Object containing metadata related to
|
||||||
the current release, including URLs for the source tarball and headers-only
|
the current release, including URLs for the source tarball and headers-only
|
||||||
tarball.
|
tarball.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user