We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
TypeScript version: 4.2.0-dev.20210125
const a = async x => { return 1; }
Trigger the infer function return type fix here
infer function return type
This results in:
const a = async x: Promise<number> => { return 1; }
Instead a set of parameter parens needs to be added in this case:
const a = async (x): Promise<number> => { return 1; }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug Report
🔎 Search Terms
🕗 Version & Regression Information
TypeScript version: 4.2.0-dev.20210125
💻 Code
Trigger the
infer function return type
fix here🙁 Actual behavior
This results in:
🙂 Expected behavior
Instead a set of parameter parens needs to be added in this case:
The text was updated successfully, but these errors were encountered: