You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting errors compiling after an update to 2.2.1.
The tsconfig.json file does not specify strictNullChecks, and the problem persists even when strictNullChecks are explicitly set to false.
TypeScript Version: 2.2.1
Code
console.log(3|null);
Expected behavior:
Successful compilation Actual behavior:
error TS2531: Object is possibly 'null'
The text was updated successfully, but these errors were encountered:
3 || null works as expected, but 3 | null does not.
In the specific case where I've encountered the issue, it was indeed an error where I've meant to do || but did | instead.
Nonetheless, I've gotten a build error on upgrading typescript, and this is not mentioned anywhere as a breaking change.
I'm getting errors compiling after an update to 2.2.1.
The tsconfig.json file does not specify strictNullChecks, and the problem persists even when strictNullChecks are explicitly set to false.
TypeScript Version: 2.2.1
Code
Expected behavior:
Successful compilation
Actual behavior:
error TS2531: Object is possibly 'null'
The text was updated successfully, but these errors were encountered: