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
A TS2532 Object is possibly 'undefined' error is rised for obj in true || (obj... part of code, despite the fact that obj was refined to be exactly SomeObj.
π Expected behavior
No error for this part of code.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
Type refinement, binary expression, logical or
π Version & Regression Information
This is the behavior in every version I tried (didn't test below v4 though), including nightly.
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
A
TS2532 Object is possibly 'undefined'
error is rised forobj
intrue || (obj...
part of code, despite the fact thatobj
was refined to be exactlySomeObj
.π Expected behavior
No error for this part of code.
The text was updated successfully, but these errors were encountered: