Skip to content

Commit f291eda

Browse files
joaoGabriel55richardlau
authored andcommitted
lib: fix isReadable and isWritable return type value
PR-URL: #59089 Fixes: #59006 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Edy Silva <[email protected]> Reviewed-By: Ethan Arrowood <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Mattias Buelens <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 91e9b8d commit f291eda

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/api/stream.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3056,10 +3056,17 @@ changes:
30563056
-->
30573057

30583058
* `stream` {Readable|Duplex|ReadableStream}
3059-
* Returns: {boolean}
3059+
* Returns: {boolean|null} - Only returns `null` if `stream` is not a valid `Readable`, `Duplex` or `ReadableStream`.
30603060

30613061
Returns whether the stream is readable.
30623062

3063+
### `stream.isWritable(stream)`
3064+
3065+
* `stream` {Writable|Duplex|WritableStream}
3066+
* Returns: {boolean|null} - Only returns `null` if `stream` is not a valid `Writable`, `Duplex` or `WritableStream`.
3067+
3068+
Returns whether the stream is writable.
3069+
30633070
### `stream.Readable.from(iterable[, options])`
30643071

30653072
<!-- YAML

0 commit comments

Comments
 (0)