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
I have no good ideas about what the syntax for this would look like. This suggestion comes purely from my experience programming in TypeScript and not from any principles (or lack thereof) of language design.
Checklist
My suggestion meets these guidelines:
This wouldn't be a breaking change in existing TypeScript/JavaScript code
This wouldn't change the runtime behavior of existing JavaScript code
[-] This could be implemented without emitting different JS based on the types of the expressions. if opted in, the generated values would have strings(string enums)
[-] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.) if opted in, the enum values would have strings(string enums)
Jack Williams (@jack-williams) ah, it does. My searching failed me. We can close this ticket as a duplicate as there has already been discussion there.
Activity
jack-williams commentedon Aug 21, 2019
Does this match your suggestion? #16464
geraldarthurdavis commentedon Aug 21, 2019
Jack Williams (@jack-williams) ah, it does. My searching failed me. We can close this ticket as a duplicate as there has already been discussion there.
typescript-bot commentedon Aug 30, 2019
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
typescript-bot commentedon Sep 2, 2019
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.