Closed
Description
Per #4129 (comment) :
we've always said they should be serializable, and ought to be strings.
Someone over on Twitter said they'd once tried to use Symbols to make them truly unique, but tbh slice namespacing gives you like 95% uniqueness anyway, so I don't see that as a reason to continue to allow them. As mentioned above, TS enums can have number values, but again why would you do that? We want them to be readable in the DevTools.
So, given that we've always effectively said they should be strings, we might as well enforce it.
Metadata
Metadata
Assignees
Labels
No labels