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

Define underlying type for enums to be always string #25

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

Envek
Copy link
Contributor

@Envek Envek commented Nov 19, 2024

In case if underlying datatype is integer, enums should be reported as strings (theoretically enums can be other datatypes, but in the wild I've not seen anything but strings)

This doesn't affect generated typescript types now (as they include only enum values and doesn't include type itself), but may affect in the future.

@skryukov skryukov merged commit 6ac726e into skryukov:main Nov 26, 2024
5 checks passed
@Envek Envek deleted the fix/enum-underlying-type branch November 26, 2024 11:59
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.

2 participants