Skip to content

Commit 5e46c16

Browse files
KonanMentortargos
authored andcommitted
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. PR-URL: #21178 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
1 parent 76927fc commit 5e46c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/stream.md

+1-1
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)