-
Notifications
You must be signed in to change notification settings - Fork 12k
[feat] ability to disable type check for .ts
files like forkTypeChecker: false
for Ivy
#20410
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
Comments
Hi @JounQin,
Regarding your comment
I am not sure how type checking is redundant and noisy during debugging, it gives you information about potential code errors ahead of time during build time, therefore if anything it should make you more confident in the code you are debugging. Realistically speaking, I don't think we will ever provide an option to turn off type-checking or disable errors. Related issue #19948 |
Can it be run on
Doesn't
We've already had |
Yes, it does.
No, it just delegates type-checking to a forked process.
I see your point here. IMHO, I think type-checking should be used all the time throughout development and not at the very end of the development cycle. Also there is no way to fully disable type-checking fully in TypeScript compiler. You can choose not to show the errors but this is something that is not on the table as ignoring errors is the wrong approach. |
Thanks for clarify, I tried, and it's working, although it's a bit slow.
I'm not sure to understand, angular-cli/packages/ngtools/webpack/src/angular_compiler_plugin.ts Lines 680 to 682 in decb05b
_forkTypeChecker is false , forkTypeChecker will not be created, will it?
And TypeScript has an option |
When false, the forked type-checker will not be created, but type-checking will be done in the main process. angular-cli/packages/ngtools/webpack/src/angular_compiler_plugin.ts Lines 1076 to 1077 in decb05b
Indeed there is an option to use |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
🚀 Feature request
Command (mark with an
x
)Description
In my company, we have
tsc --noEmit
to ensure there is no type error for.ts
files already, so type checking for.ts
on development is redundant and noisy for debugging. So We hope to disable type checking for.ts
files.But for
.html
files ortemplate
option ofComponent
,tsc --noEmit
can not help, so I hope type checking will still work withstrictTemplates
.Of course, if
ngcc --noEmit
can achieve similar functionality for both.html
and.ts
files, that would be greater!Describe the solution you'd like
As description
Describe alternatives you've considered
N/A
The text was updated successfully, but these errors were encountered: