Symbols as literal types #7436
Labels
Needs Proposal
This issue needs a plan that clarifies the finer details of how it could be implemented.
Suggestion
An idea for TypeScript
Consider following use case for string literals at the moment in Flux:
(Above example assumes #6028 gets fixed, for the moment one can implement own type guard.)
But it would be even better if one could use Symbol for the same thing:
These symbol literal types has same type guard requirement as literal types.
The text was updated successfully, but these errors were encountered: