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

add #[ts(type=..)] on enums for enum generation #24

Closed

Conversation

JakubKoralewski
Copy link

@JakubKoralewski JakubKoralewski commented Jul 19, 2021

Previously having even a simple enum would generate a type. The default behavior does not change, but if specifed to be enum or const enum the corresponding will be generated.

Closes #23

Previously having even a simple enum would generate a `type`.
The default behavior does not change, but if specifed to be `enum`
or `const enum` the corresponding will be generated.
@JakubKoralewski JakubKoralewski changed the title add #[type=..] on enums for enum generation add #[ts(type=..)] on enums for enum generation Jul 19, 2021
@amydevs
Copy link

amydevs commented Nov 27, 2021

i'd love for something like this to be added! mayb could also implement serde_repr integration?

@lorenzolewis
Copy link

Adding on that I'd love to see this added in. I just ran into a scenario where having this adjusted would be perfect for my use case!

@GhaithAlHallak8
Copy link

Any updates?

@escritorio-gustavo
Copy link
Contributor

Closed as discussed in #118

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.

Export enum instead of type for simple C-like enums
5 participants