Basically enable these two compiler options in tsconfig.json:
"noImplicitAny": true,
"strictNullChecks": true,
The first one nudges you to provide more typing information and the second one makes null and undefined cases that you need to care for while coding.
The strictNullChecks option already prevented many bugs in my coding "career".
Basically enable these two compiler options in tsconfig.json:
The first one nudges you to provide more typing information and the second one makes
null
andundefined
cases that you need to care for while coding. ThestrictNullChecks
option already prevented many bugs in my coding "career".