Skip to content

Fix incorrect parameter types for AsyncIterator next/return - #33354

Merged
Ron Buckton (rbuckton) merged 1 commit into
masterfrom
fix33239
Sep 18, 2019
Merged

Fix incorrect parameter types for AsyncIterator next/return#33354
Ron Buckton (rbuckton) merged 1 commit into
masterfrom
fix33239

Conversation

@rbuckton

Copy link
Copy Markdown
Contributor

Fixes#33239

Copy link
Copy Markdown

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!

Comment threadsrc/lib/es2018.asyncgenerator.d.ts
@DanielRosenwasser

Copy link
Copy Markdown
Member

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

@rbuckton

Copy link
Copy Markdown
ContributorAuthor

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

@rbuckton

Copy link
Copy Markdown
ContributorAuthor

Daniel Rosenwasser (@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
Copy Markdown
Member

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

@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

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

@rbuckton@DanielRosenwasser@weswigham@brainkim