Skip to content
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

Typechecker improvements #173

Open
iccir opened this issue May 6, 2023 · 0 comments
Open

Typechecker improvements #173

iccir opened this issue May 6, 2023 · 0 comments

Comments

@iccir
Copy link
Member

iccir commented May 6, 2023

A lot of this work is already done, but I wanted to make an issue to document it.

  • check-types should work with multiple Compiler objects when the Compiler#uses API is used. Historically, for performance reasons, we have recommended a single aggregate Compiler with all source files. This fails to catch certain types of dependency graph issues.
  • We should use worker_threads to execute multiple copies of the TypeScript compiler in parallel.
  • We should use the Language Services API and let TypeScript handle incremental compile logic.
  • There should be an option to prevent Compiler#compile from waiting on type checker results. This would deliver the performance wins of the aggregate type checker while also catching the above-mentioned dependency graph issues.
iccir added a commit that referenced this issue May 7, 2023
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

1 participant