3 ms·
If you want to cover this particularly case, strict-boolean-expressions in tslint should catch it. That being said, I agree it's an unfortunate footgun and thi
by strken 3y ago
If you want to cover this particularly case, strict-boolean-expressions in tslint should catch it.
That being said, I agree it's an unfortunate footgun and think tsc should yell at you for using non-boolean types in conditionals if strict is on.