Skip to content
New issue

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

Double quote standalone enum key if it contains special characters #648

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

troyshu
Copy link
Contributor

@troyshu troyshu commented Dec 18, 2024

Linked issue: #641

This PR ensures standalone enum keys with special characters are surrounded by double quotes, making the generated enums valid TypeScript.

@troyshu
Copy link
Contributor Author

troyshu commented Dec 18, 2024

Let me know what you think @bcherny ! Thanks for all your hard work on this amazing package.

@ChengDe-Lin
Copy link

thanks @troyshu, I found this update quite useful for my case.
Hello @bcherny ~ sorry for bothering, how do you think about this PR? is there any chance you would merge it in a near future?

@bcherny bcherny merged commit 18831cb into bcherny:master Jan 14, 2025
18 checks passed
@bcherny
Copy link
Owner

bcherny commented Jan 14, 2025

Published [email protected]

@bcherny
Copy link
Owner

bcherny commented Jan 14, 2025

Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants