We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON enums allow enum-values to start with numbers. Interfering the keys from the enum-values will result in an enum like i.e.
enum foo { 0bar: "0bar", 1baz: "1baz", }
which is invalid in typescript.
I think the best way to handle this is to escape the keys, similar to special-characters:
enum foo { "0bar": "0bar", "1baz": "1baz", }
I opened a PR for this Issue: #656
The text was updated successfully, but these errors were encountered:
No branches or pull requests
JSON enums allow enum-values to start with numbers.
Interfering the keys from the enum-values will result in an enum like i.e.
which is invalid in typescript.
I think the best way to handle this is to escape the keys, similar to special-characters:
I opened a PR for this Issue:
#656
The text was updated successfully, but these errors were encountered: