You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some .d.ts files referenced in the project (from Angular 2) which are not compatible with --strictNullChecks.
I want to enforce strict nulls within my own project though. So I have tsconfig.json with 'strictNullChecks': true specifically to direct my editor to underline these.
In our google-internal build system, we have our own tsc wrapper that does specific type-checks (and uses a different generated tsconfig.json so this all works fine in the build.
But, users benefit from being able to just run a vanilla tsc command on the command line to diagnose setup issues.
So, I'd like to be able to override any setting in the tsconfig.json with a command-line option. In some cases I can do so (eg --target=es5 overrides 'target': 'es6') but with boolean options only the true value can be passed, eg --strictNullChecks
I propose --strictNullChecks=false be accepted on CLI
I have some .d.ts files referenced in the project (from Angular 2) which are not compatible with
--strictNullChecks.I want to enforce strict nulls within my own project though. So I have
tsconfig.jsonwith'strictNullChecks': truespecifically to direct my editor to underline these.In our google-internal build system, we have our own tsc wrapper that does specific type-checks (and uses a different generated
tsconfig.jsonso this all works fine in the build.But, users benefit from being able to just run a vanilla
tsccommand on the command line to diagnose setup issues.So, I'd like to be able to override any setting in the
tsconfig.jsonwith a command-line option. In some cases I can do so (eg--target=es5overrides'target': 'es6') but with boolean options only thetruevalue can be passed, eg--strictNullChecksI propose
--strictNullChecks=falsebe accepted on CLI