TypeScript Version: 2.6.1
Code
Minimal:
Actual real-world mistake:
str !== 'hello' && thing !== null (
<div>blah</div>
)
Expected behavior:
Clear error to the effect of:
Invoking 'null' as a function
Actual behavior:
Technically correct but slightly misleading error:
Object is possibly 'null'
TypeScript Version: 2.6.1
Code
Minimal:
Actual real-world mistake:
Expected behavior:
Clear error to the effect of:
Actual behavior:
Technically correct but slightly misleading error: