We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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: 2.1.4
Code
interface HelloPromise extends Promise<string> {} function hello() : HelloPromise { return Promise.resolve('hello'); } async function run() { await hello(); }; run();
Expected behavior: The code is compiled without errors.
Actual behavior: Following error is reported:
tsc -t es6 --strictNullChecks index.ts index.ts(8,3): error TS1058: Operand for 'await' does not have a valid callable 'then' member.
You can find the repro code here: https://github.com/jsedlacek/ts-promise-repro
The text was updated successfully, but these errors were encountered:
Note: This code works in typescript 2.0.4.
Sorry, something went wrong.
Duplicate of #12292?
Fix should be in typescript@next later tonight. Please give it a try and let us know if you are still running into issues.
Thanks, I can confirm that typescript@next fixes this issue.
No branches or pull requests
TypeScript Version: 2.1.4
Code
Expected behavior: The code is compiled without errors.
Actual behavior: Following error is reported:
You can find the repro code here:
https://github.com/jsedlacek/ts-promise-repro
The text was updated successfully, but these errors were encountered: