Skip to content

Commit

Permalink
Update file-io.md: BunFile.stream() doesn't return promise (#7372)
Browse files Browse the repository at this point in the history
According to my lsp, `.stream()` returns a ReadableStream directly instead of a promise.
  • Loading branch information
NReilingh committed Nov 29, 2023
1 parent 809266f commit ebae02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/file-io.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ interface BunFile {
readonly type: string;

text(): Promise<string>;
stream(): Promise<ReadableStream>;
stream(): ReadableStream;
arrayBuffer(): Promise<ArrayBuffer>;
json(): Promise<any>;
writer(params: { highWaterMark?: number }): FileSink;
Expand Down

0 comments on commit ebae02a

Please sign in to comment.