Skip to content

Commit

Permalink
Make ReadableStreamAsyncIterator implement AsyncIterableIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Jan 14, 2024
1 parent 574130c commit b1cdb56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/web-streams-polyfill.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class ReadableStream<R = any> implements AsyncIterable<R> {
}

// @public
export interface ReadableStreamAsyncIterator<R> extends AsyncIterator<R> {
export interface ReadableStreamAsyncIterator<R> extends AsyncIterableIterator<R> {
// (undocumented)
next(): Promise<IteratorResult<R, undefined>>;
// (undocumented)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/readable-stream/async-iterator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
*
* @public
*/
export interface ReadableStreamAsyncIterator<R> extends AsyncIterator<R> {
export interface ReadableStreamAsyncIterator<R> extends AsyncIterableIterator<R> {
next(): Promise<IteratorResult<R, undefined>>;

return(value?: any): Promise<IteratorResult<any>>;
Expand Down

0 comments on commit b1cdb56

Please sign in to comment.