Skip to content

Commit

Permalink
doc: add writable and readable options to Duplex docs
Browse files Browse the repository at this point in the history
  • Loading branch information
preyunk committed Jul 15, 2020
1 parent 3b13032 commit d2e695d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -2535,6 +2535,10 @@ changes:
* `allowHalfOpen` {boolean} If set to `false`, then the stream will
automatically end the writable side when the readable side ends.
**Default:** `true`.
* `readable` {boolean} Sets whether the `Duplex` should be readable.
**Default:** `true`.
* `writable` {boolean} Sets whether the `Duplex` should be writable.
**Default:** `true`.
* `readableObjectMode` {boolean} Sets `objectMode` for readable side of the
stream. Has no effect if `objectMode` is `true`. **Default:** `false`.
* `writableObjectMode` {boolean} Sets `objectMode` for writable side of the
Expand Down

0 comments on commit d2e695d

Please sign in to comment.