Skip to content

Commit 7def9a7

Browse files
committed
doc: fix type in stream doc
Extend return type of `read()` method with `any` which is a valid return type for readable streams in object mode.
1 parent 8d27477 commit 7def9a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/stream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ added: v0.9.4
954954
-->
955955

956956
* `size` {number} Optional argument to specify how much data to read.
957-
* Returns: {string|Buffer|null}
957+
* Returns: {string|Buffer|null|any}
958958

959959
The `readable.read()` method pulls some data out of the internal buffer and
960960
returns it. If no data available to be read, `null` is returned. By default,

0 commit comments

Comments
 (0)