-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
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
VS Code codebase compile errors with 3.9.0-dev.20200324 #37556
Comments
Looks like some of these are already tracked:
|
This is due to the inclusion of the new |
I am looking into whether #37570 might address this. |
It looks like #37540 may help as well, as it reduced the number of failures in our tests significantly: https://github.com/typescript-bot/TypeScript/pull/9/files#diff-0e62d568d28b82cee9e66b2b8fafd290R7 |
This has a side effect on the DefinitelyTyped definitions as the CI and local tests include checks for the @next tag: https://github.com/definitelyTyped/DefinitelyTyped/ Property 'then' in type 'Bluebird<R>' is not assignable to the same property in base type 'PromiseLike<R>'. or: Property 'then' in type 'MyPromise<T>' is not assignable to the same property in base type 'PromiseLike<T>'.
Type '<TResult1 = T, TResult2 = never>(onfulfilled?: (value: T) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => PromiseLike<...>' is not assignable to type '<TResult1 = T, TResult2 = never>(onfulfilled?: (value: awaited T) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => PromiseLike<...>'.
Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible.
Types of parameters 'value' and 'value' are incompatible.
Type 'T' is not assignable to type 'awaited T'. The impact is hard to asses, as for example jQuery type definitions contains a custom Promise-like definition, so any update for a package using jQuery definition as dependency will now fail under the CI or local tests against @next. Let me know if you want more details, |
@mjbvz We are reverting |
Ok, thanks for the quick followup. Let me know if you need any help understanding what the VS Code codebase is doing |
TypeScript Version: 3.9.0-dev.20200324
Repro
Problem
I see ~30 errors (after fixing a few simple ones). Many of these are related to awaited. I'll start splitting out individual issues when I can create small repos
The text was updated successfully, but these errors were encountered: