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
Fixes: #34382

PR-URL: #34383
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Robert Nagy <[email protected]>
Reviewed-By: Ricky Zhou <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
  • Loading branch information
preyunk authored and rickyes committed Aug 10, 2020
1 parent 71aeea1 commit 3ddf2c9
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 3ddf2c9

Please sign in to comment.