Skip to content

Conversation

rbuckton
Copy link
Contributor

This avoids introducing Awaited<T> in undesired places (essentially, only as part of an await) so that we don't end up with Promise<Awaited<T>>, which was causing issues with return type inference and return type checking.

Fixes part of #45846
Fixes #45924

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Sep 17, 2021
@rbuckton rbuckton merged commit 4c0a51e into main Sep 22, 2021
@rbuckton rbuckton deleted the fix45924 branch September 22, 2021 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect handling of ReturnStatement check in an async function
3 participants