ReadableStream
is not a subtype of AsyncIterator
#57874
Labels
Duplicate
An existing issue was already created
ReadableStream
is not a subtype of AsyncIterator
#57874
π Search Terms
π Version & Regression Information
I'm using 5.3.2.
β― Playground Link
No response
π» Code
π Actual behavior
tsc reports the following error:
That property should not have been missing in
ReadableStream
.π Expected behavior
No error, because the Streams WHATWG Living Standard documents that ReadableStream is an async iterable: https://streams.spec.whatwg.org/#rs-asynciterator
Additional information about the issue
Admittedly, this isn't widely supported. At time of writing, it may be that just 3 runtimes support it:
Live data: https://caniuse.com/mdn-api_readablestream_--asynciterator
Note:
The browser-compat-data calls this feature "experimental", but I'm not sure what the basis for that is. See mdn/browser-compat-data#22676h/t @fatcerberus for explaining this classificationThe text was updated successfully, but these errors were encountered: