tsc --strict
↔ to flag TSC auto-set max strictness settings, apply true to: --noImplicitAny
, --noImplicitThis
, --alwaysStrict
, --strictNullChecks
, --strictFunctionTypes
, --strictPropertyInitialization
--noImplicitAny
to flag TSC to prevent Type Inference for any
- enforce explicit Type for Parameter, Exception, etc
--noImplicitThis
to flag TSC to throw error when Type of this
keyword unclear
--alwaysStrict
to flag TSC to apply Strict Mode
--strictNullChecks
to flag TSC to throw error when null is not explicitly defined
--strictFunctionTypes
to flag TSC to enforce stronger checks for function Types
--strictPropertyInitialization
flag to set TSC to throw error when properties in class
definitions are not initialized