Skip to content

!feat: use first class typescript enums #20

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

Merged
merged 3 commits into from
Apr 28, 2025
Merged

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Apr 28, 2025

This is a breaking change. To keep the old behavior, use config.EnumAsTypes

Enums are handled as first class types in Typescript. The previous behavior was seen as a more direct comparison of types, since Golang does not have native Enum support.

The previous behavior however was lossy, as it lost the enum member names. This new change is lossless, and the types can be reverted to the prior state.

@Emyrk Emyrk merged commit 2cbbcee into main Apr 28, 2025
1 check passed
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.

1 participant