Skip to content

Commit 401ae3d

Browse files
cola119targos
authored andcommitted
doc: clarify subprocess.stdout/in/err property
PR-URL: #43910 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com>
1 parent 842e739 commit 401ae3d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/api/child_process.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@ in which the child process is launched.
16391639
added: v0.1.90
16401640
-->
16411641

1642-
* {stream.Readable}
1642+
* {stream.Readable|null|undefined}
16431643

16441644
A `Readable Stream` that represents the child process's `stderr`.
16451645

@@ -1649,16 +1649,16 @@ then this will be `null`.
16491649
`subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will
16501650
refer to the same value.
16511651

1652-
The `subprocess.stderr` property can be `null` if the child process could
1653-
not be successfully spawned.
1652+
The `subprocess.stderr` property can be `null` or `undefined`
1653+
if the child process could not be successfully spawned.
16541654

16551655
### `subprocess.stdin`
16561656

16571657
<!-- YAML
16581658
added: v0.1.90
16591659
-->
16601660

1661-
* {stream.Writable}
1661+
* {stream.Writable|null|undefined}
16621662

16631663
A `Writable Stream` that represents the child process's `stdin`.
16641664

@@ -1671,8 +1671,8 @@ then this will be `null`.
16711671
`subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will
16721672
refer to the same value.
16731673

1674-
The `subprocess.stdin` property can be `undefined` if the child process could
1675-
not be successfully spawned.
1674+
The `subprocess.stdin` property can be `null` or `undefined`
1675+
if the child process could not be successfully spawned.
16761676

16771677
### `subprocess.stdio`
16781678

@@ -1724,7 +1724,7 @@ not be successfully spawned.
17241724
added: v0.1.90
17251725
-->
17261726

1727-
* {stream.Readable}
1727+
* {stream.Readable|null|undefined}
17281728

17291729
A `Readable Stream` that represents the child process's `stdout`.
17301730

@@ -1744,8 +1744,8 @@ subprocess.stdout.on('data', (data) => {
17441744
});
17451745
```
17461746

1747-
The `subprocess.stdout` property can be `null` if the child process could
1748-
not be successfully spawned.
1747+
The `subprocess.stdout` property can be `null` or `undefined`
1748+
if the child process could not be successfully spawned.
17491749

17501750
### `subprocess.unref()`
17511751

0 commit comments

Comments
 (0)