Skip to content

Commit ce08561

Browse files
lib: fix isReadable and isWritable return type value
PR-URL: #59089 Fixes: #59006 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Mattias Buelens <mattias@buelens.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 4d5792a commit ce08561

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
@@ -3084,10 +3084,17 @@ changes:
30843084
-->
30853085

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

30893089
Returns whether the stream is readable.
30903090

3091+
### `stream.isWritable(stream)`
3092+
3093+
* `stream` {Writable|Duplex|WritableStream}
3094+
* Returns: {boolean|null} - Only returns `null` if `stream` is not a valid `Writable`, `Duplex` or `WritableStream`.
3095+
3096+
Returns whether the stream is writable.
3097+
30913098
### `stream.Readable.from(iterable[, options])`
30923099

30933100
<!-- YAML

0 commit comments

Comments
 (0)