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
It would be useful to have a way to refer to the possible values at runtime:
something like __valuesof(Fish) would transpile to ["one" , "two" , "red", "blue"] in both cases.
Also consider __enummap(Fish) that would transpile to
{
"one":1,
"two":2,
"red":3,
"blue":4
}
or explicit enum values if specified. This would allow C#'s Enum.Parse functionality