Skip to content

[NewErrors] 4.3.0-dev.20210307 vs 4.2.3 #43128

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

Closed
typescript-bot opened this issue Mar 7, 2021 · 1 comment
Closed

[NewErrors] 4.3.0-dev.20210307 vs 4.2.3 #43128

typescript-bot opened this issue Mar 7, 2021 · 1 comment

Comments

@typescript-bot
Copy link
Collaborator

The following errors were reported by 4.3.0-dev.20210307, but not by 4.2.3

cdr/code-server

10 of 51 projects failed to build with the old tsc

lib/vscode/extensions/html-language-features/server/tsconfig.json

lib/vscode/extensions/typescript-language-features/tsconfig.json

vercel/hyper

1 of 2 projects failed to build with the old tsc

tsconfig.json

  • error TS2367: This condition will always return 'true' since the types 'Promise<void>' and 'false' have no overlap.

ReactiveX/rxjs

7 of 11 projects failed to build with the old tsc

src/tsconfig.cjs.spec.json

src/tsconfig.esm5.rollup.json

typeorm/typeorm

tsconfig.json

@DanielRosenwasser
Copy link
Member

The cdr/code-server errors seem good - these are unnecessary checks for Promises that will always be present as far as I can tell.

The Vercel one is way more questionable - it looks like we're not checking the narrowed type or something like that on commandPromise.

I already brought up issues around TypeORM last week's #43004 (comment), in that without strictPropertyInitialization and checks against this.yaddaYadda, you really have no way to ensure that the properties were definitely assigned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants