docs: add note about strictTemplates and strictNullChecks together (#34039)
PR Close #34039
This commit is contained in:
parent
5ff98fe701
commit
78c65c330f
|
@ -109,6 +109,7 @@ In case of a false positive like these, there are a few options:
|
|||
* Use the [`$any()` type-cast function](guide/template-syntax#any-type-cast-function) in certain contexts to opt out of type-checking for a part of the expression.
|
||||
* You can disable strict checks entirely by setting `strictTemplates: false` in the application's TypeScript configuration file, `tsconfig.json`.
|
||||
* You can disable certain type-checking operations individually, while maintaining strictness in other aspects, by setting a _strictness flag_ to `false`.
|
||||
* If you want to use `strictTemplates` and `strictNullChecks` together, you can opt out of strict null type checking specifically for input bindings via `strictNullInputTypes`.
|
||||
|
||||
|Strictness flag|Effect|
|
||||
|-|-|
|
||||
|
|
Loading…
Reference in New Issue