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
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Like we can narrow down union types with
typeof
andinstance of
, it would be nice if it could also be narrowed with the javascriptin
operator.Code
When using an exhaustive switch/if, it would allow us to reduce the union type down to only the types that can have the specified property.
Remark
What to do with numbers and symbols?
The text was updated successfully, but these errors were encountered: