lib: fix isReadable and isWritable return type value · nodejs/node@4fd213c

Original file line numberDiff line numberDiff line change

@@ -3074,10 +3074,17 @@ changes:

30743074

-->

30753075
30763076

* `stream` {Readable|Duplex|ReadableStream}

3077-

* Returns: {boolean}

3077+

* Returns: {boolean|null} - Only returns `null` if `stream` is not a valid `Readable`, `Duplex` or `ReadableStream`.

30783078
30793079

Returns whether the stream is readable.

30803080
3081+

### `stream.isWritable(stream)`

3082+
3083+

* `stream` {Writable|Duplex|WritableStream}

3084+

* Returns: {boolean|null} - Only returns `null` if `stream` is not a valid `Writable`, `Duplex` or `WritableStream`.

3085+
3086+

Returns whether the stream is writable.

3087+
30813088

### `stream.Readable.from(iterable[, options])`

30823089
30833090

<!-- YAML