Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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