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
The current implementation of Enum just mirrors the string, but if I am trying to type some other value, like a number, I can't create a nice readable mapping e.g.
if(errorCode===Errors.JWT_INVALID)// do something
The text was updated successfully, but these errors were encountered:
Feature request
Ability to pass key/value pairs to
Enum
Use case(s)
Creating an enum of error response codes:
The current implementation of Enum just mirrors the string, but if I am trying to type some other value, like a number, I can't create a nice readable mapping e.g.
The text was updated successfully, but these errors were encountered: