Strict Property Initialization
This lesson introduces another compiler flag, `strictPropertyInitialization`, which brings more type safety to code that uses classes.
We'll cover the following...
Definition
The flag we’re talking about is called strictPropertyInitialization. As usual, let’s look at the definition from the documentation. I think it’s rather self-explanatory.
Ensure non-undefined class properties are initialized in the constructor. This option requires – strictNullChecks be ...
Ask