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: 3.1.0-dev.201xxxxx
Search Terms: async, promise, code fix, code action, then
Code
function foo() { return Promise.resolve().then(_ => Promise.resolve(4 + 5)).then(y => y + 5); }
Expected behavior: Async code fix produces
async function foo() { await Promise.resolve(); const y = await Promise.resolve(4 + 5); return y + 5; }
Actual behavior: Async code fix produces
async function foo() { await Promise.resolve(); const y = Promise.resolve(4 + 5); return y + 5; }
The text was updated successfully, but these errors were encountered:
await
uniqueiniquity
Successfully merging a pull request may close this issue.
TypeScript Version: 3.1.0-dev.201xxxxx
Search Terms:
async, promise, code fix, code action, then
Code
Expected behavior:
Async code fix produces
Actual behavior:
Async code fix produces
The text was updated successfully, but these errors were encountered: