Skip to content

Commit 4fd213c

Browse files
joaoGabriel55targos
authored andcommitted
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 f5b6829 commit 4fd213c

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
@@ -3074,10 +3074,17 @@ changes:
30743074
-->
30753075

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

30793079
Returns whether the stream is readable.
30803080

3081+
### `stream.isWritable(stream)`
3082+
3083+
* `stream` {Writable|Duplex|WritableStream}
3084+
* Returns: {boolean|null} - Only returns `null` if `stream` is not a valid `Writable`, `Duplex` or `WritableStream`.
3085+
3086+
Returns whether the stream is writable.
3087+
30813088
### `stream.Readable.from(iterable[, options])`
30823089

30833090
<!-- YAML

0 commit comments

Comments
 (0)