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
String enums are syntactically differentiated from numeric enums by having string literals in all initialization positions. It's also the case that we need to produce a union type (instead of a branded primitive type) for a string literal enum, which aren't really sourced from consts without explicit type annotations.
Activity
mhegazy commentedon Dec 4, 2017
Should be addressed by #18887
martabrzeszczyk commentedon Jun 11, 2018
Andy (Andrewkraft) (@Andy-MS) Is it still going to be fixed? #18887 suggests that only conflicts needs to be resolved?
pgraham commentedon Aug 8, 2018
#18887 was automatically closed due to inactivity, is this going to fixed?
RyanCavanaugh commentedon Aug 22, 2018
This is disallowed on purpose.
String enums are syntactically differentiated from numeric enums by having string literals in all initialization positions. It's also the case that we need to produce a union type (instead of a branded primitive type) for a string literal enum, which aren't really sourced from consts without explicit type annotations.