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
Expected behavior:
I would expect simple if/ternary statements to be the idiomatic way to "type guard" string enums, but it doesn't do anything at compile time.
Actual behavior:
No error
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.0.0
Code
Expected behavior:
I would expect simple if/ternary statements to be the idiomatic way to "type guard" string enums, but it doesn't do anything at compile time.
Actual behavior:
No error
The text was updated successfully, but these errors were encountered: