Skip to content
New issue

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

Fix incorrect parameter types for AsyncIterator next/return #33354

Merged
merged 1 commit into from
Sep 18, 2019
Merged

Conversation

rbuckton
Copy link
Member

Fixes #33239

Copy link

@brainkim brainkim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a little note based on looking at the spec. Thanks for working on this!

src/lib/es2018.asyncgenerator.d.ts Show resolved Hide resolved
@DanielRosenwasser
Copy link
Member

Can you add the original code from the issue as a test?

@rbuckton
Copy link
Member Author

cc: @weswigham can you review? suggested reviewers is broken because I changed checker.ts.

@rbuckton
Copy link
Member Author

@DanielRosenwasser: I added a test for the original issue and also to verify the correct inferred type for the result of yield in an async generator.

@DanielRosenwasser
Copy link
Member

@RyanCavanaugh mentioned that this would be suitable for a 3.6.4. Let's chat on Monday on whether that's the case.

@rbuckton rbuckton merged commit 344dba8 into master Sep 18, 2019
@rbuckton rbuckton deleted the fix33239 branch December 16, 2019 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trouble implementing AsyncIterator interface in 3.6.2
4 participants