Skip to content

Commit adaf151

Browse files
committed
fixup: update the doc for process.exitCode
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com
1 parent 5507e2f commit adaf151

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
@@ -1816,9 +1816,15 @@ than the current process.
18161816
18171817
<!-- YAML
18181818
added: v0.11.8
1819+
changes:
1820+
- version: REPLACEME
1821+
pr-url: https://github.com/nodejs/node/pull/43716
1822+
description: Only accepts a code of type number, or of type string if it
1823+
represents an integer.
18191824
-->
18201825
1821-
* {integer}
1826+
* {integer|string|null|undefined} The exit code. For string type, only
1827+
integer strings (e.g.,'1') are allowed. **Default:** `undefined`.
18221828
18231829
A number which will be the process exit code, when the process either
18241830
exits gracefully, or is exited via [`process.exit()`][] without specifying

0 commit comments

Comments
 (0)