Skip to content

Commit e36ffb7

Browse files
Linn DahlgrenTrott
Linn Dahlgren
authored andcommitted
doc: change type of child_process.signalCode to string
During testing, and interfacing with child_processes, I found that the child_process.signalCode property to be the string representation of the signal, not number. PR-URL: nodejs#35223 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 9687348 commit e36ffb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/child_process.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1389,9 +1389,9 @@ connection to the child.
13891389

13901390
### `subprocess.signalCode`
13911391

1392-
* {integer}
1392+
* {string|null}
13931393

1394-
The `subprocess.signalCode` property indicates the signal number received by
1394+
The `subprocess.signalCode` property indicates the signal received by
13951395
the child process if any, else `null`.
13961396

13971397
### `subprocess.spawnargs`

0 commit comments

Comments
 (0)