Open
Description
TypeScript Version: 3.2.2
Search Terms: typeof undefined
Code
// This condition will always return 'false' since the types '"string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function"' and '42' have no overlap.
typeof 42 === 42
typeof 42 === undefined
typeof 42 === null
Expected behavior:
typeof 42 === undefined
typeof 42 === null
Should warn as what typeof 42 === 42
warns.
Actual behavior:
No warnings
Related Issues: