Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
doc: clarify return values for isReadable and isWritable functions
  • Loading branch information
joaoGabriel55 committed Jul 18, 2025
commit 5e4640d0af3612b314e776eca1be9f7f29876e8e
4 changes: 2 additions & 2 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -3084,14 +3084,14 @@ changes:
-->

* `stream` {Readable|Duplex|ReadableStream}
* Returns: {boolean|null} - Only returns a `null` if type of `stream.readable` argument passed is not a boolean.
* Returns: {boolean|null} - Only returns `null` if `stream` is not a valid `Readable`, `Duplex` or `ReadableStream`.

Returns whether the stream is readable.

### `stream.isWritable(stream)`

* `stream` {Writable|Duplex|WritableStream}
* Returns: {boolean|null} - Only returns a `null` if type of `stream.writable` argument passed is not a boolean.
* Returns: {boolean|null} - Only returns `null` if `stream` is not a valid `Writable`, `Duplex` or `WritableStream`.

Returns whether the stream is writable.

Expand Down
Loading