Fall back to (Async)IterableIterator if (Async)Generator not found#32303
Conversation
|
@DanielRosenwasser: Interested in your feedback. The problem is that |
|
@typescript-bot user test this |
|
The user suite test run you requested has finished and failed. I've opened a PR with the baseline diff from master. |
|
Other than catching a lot of other diagnostics changes from a different commit, it seems to have addressed https://github.com/microsoft/TypeScript/pull/32244/files#diff-601ae163618e1a582913605ac0b1b7c1R107 from the generator types user test. |
|
@weswigham: Can you take a look? |
Allow generator return type inference to fall back to
IterableIteratorifGeneratorcan't be found and thereturnandnexttypes of the generator are compatible with the expectedreturnandnexttypes ofIterableIterator.This improves backwards compatibility for existing generators that may not have the
es2015.generatorslib included.Fixes https://github.com/microsoft/TypeScript/pull/32244/files#diff-601ae163618e1a582913605ac0b1b7c1R107