概要
https://www.typescriptlang.org/tsconfig#strict
{
"strict": true
}
このオプション自体は特定の文法上の機能を持ちません。
このオプションをtrue
にすると、下記のオプションが全てtrue
になります。
- noImplicitAny
- noImplicitThis
- alwaysStrict
- strictBindCallApply
- strictNullChecks
- strictFunctionTypes
- strictPropertyInitialization
逆に言えば、strict
をtrue
にした上で、任意のルールを一つずつfalse
にすることが可能です。