From 3ddf2c9c996dea6bbf0d24c632ccc85e720a9b1a Mon Sep 17 00:00:00 2001 From: Priyank Singh Date: Wed, 15 Jul 2020 21:26:34 +0530 Subject: [PATCH] doc: add writable and readable options to Duplex docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: https://github.com/nodejs/node/issues/34382 PR-URL: https://github.com/nodejs/node/pull/34383 Reviewed-By: Anna Henningsen Reviewed-By: Robert Nagy Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: James M Snell Reviewed-By: Juan José Arboleda Reviewed-By: Anto Aravinth --- doc/api/stream.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/stream.md b/doc/api/stream.md index 361958a11a6c33..97e848f56fa1fa 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -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