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
// OKasyncfunctionfoo(): Promise<boolean>{returnPromise.resolve(true);}// NOT OK (?)typeAsyncBool=Promise<boolean>;asyncfunctionbar(): AsyncBool{returnPromise.resolve(true);}
Expected behavior:
Successful compilation.
Actual behavior:
Compiler error:
Type 'AsyncBool' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value.