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 <anna@addaleax.net>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
  • Loading branch information
preyunk authored and BethGriggs committed Aug 20, 2020
1 parent 7cde699 commit b93ba07
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 @@ -2412,6 +2412,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 b93ba07

Please sign in to comment.