We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the following code:
for await (const event of asyncIterator.call(eventStream)) { ... }
Where eventStream is of type ReadableStream<ParsedEvent>, but the event is now unknown.
eventStream
ReadableStream<ParsedEvent>
event
unknown
The text was updated successfully, but these errors were encountered:
asyncIterator
Thanks for reporting this issue. It's a TypeScript limitation that generics are lost in fn.call().
fn.call()
I refactored the asyncIterator ponyfill API in #30 to make it more functional.
Can you test it by installing the preview release package
npm i https://pkg.pr.new/@sec-ant/readable-stream@30
and change your code to this to check whether it fixes your problem?
for await (const event of asyncIterator(eventStream)) { ... }
cc @ehmicky please be aware of this breaking change
Sorry, something went wrong.
Thanks, it works.
This is released in v0.5.0
Successfully merging a pull request may close this issue.
I have the following code:
Where
eventStream
is of typeReadableStream<ParsedEvent>
, but theevent
is nowunknown
.The text was updated successfully, but these errors were encountered: