You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @evanw, could you please explain how can I use async/await when compiling TypeScript to target ES6/ES2015?
I expect that it will compile replacing async/await with Promise, but instead I see it as it is and the following warning:
warning: This syntax is from ES2017 and is not available in ES2015
async function toModel(item) {
Thank you.
The text was updated successfully, but these errors were encountered:
The transforms for all syntax features haven't been written yet. There is not yet code to transform async functions into older JavaScript. That is what this warning is about, and why async functions are documented as unsupported below ES2017. I plan to add support for transforming pretty much all of the syntax that's currently supported at some point in the future.
Hi @evanw, could you please explain how can I use async/await when compiling TypeScript to target ES6/ES2015?
I expect that it will compile replacing async/await with Promise, but instead I see it as it is and the following warning:
Thank you.
The text was updated successfully, but these errors were encountered: