Skip to content

Commit 3ddf2c9

Browse files
preyunkrickyes
authored andcommitted
doc: add writable and readable options to Duplex docs
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]>
1 parent 71aeea1 commit 3ddf2c9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/stream.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,6 +2535,10 @@ changes:
25352535
* `allowHalfOpen` {boolean} If set to `false`, then the stream will
25362536
automatically end the writable side when the readable side ends.
25372537
**Default:** `true`.
2538+
* `readable` {boolean} Sets whether the `Duplex` should be readable.
2539+
**Default:** `true`.
2540+
* `writable` {boolean} Sets whether the `Duplex` should be writable.
2541+
**Default:** `true`.
25382542
* `readableObjectMode` {boolean} Sets `objectMode` for readable side of the
25392543
stream. Has no effect if `objectMode` is `true`. **Default:** `false`.
25402544
* `writableObjectMode` {boolean} Sets `objectMode` for writable side of the

0 commit comments

Comments
 (0)