3 ms·
That behaviour is only enabled if `--strictNullChecks` is set to true. Otherwise, by default all types include null/undefined just like in TypeScript 1.x. So it
by jahewson 10y ago
That behaviour is only enabled if `--strictNullChecks` is set to true. Otherwise, by default all types include null/undefined just like in TypeScript 1.x. So it's entirely opt-in.