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

[bug] Numeric enum is not converted correctly on v2.0.0. #44

Closed
percy507 opened this issue Sep 13, 2023 · 1 comment
Closed

[bug] Numeric enum is not converted correctly on v2.0.0. #44

percy507 opened this issue Sep 13, 2023 · 1 comment

Comments

@percy507
Copy link

/** Integer enums should follow rust discrimination if literals (doesn't evaluate expression) */
export type Foo =
| "Bar" | "Baz" | "Quux";

BTW: v1.7.0 works fine.

Wulf added a commit that referenced this issue Sep 29, 2023
Wulf added a commit that referenced this issue Sep 29, 2023
Wulf added a commit that referenced this issue Sep 29, 2023
Wulf added a commit that referenced this issue Sep 29, 2023
Wulf added a commit that referenced this issue Sep 29, 2023
@Wulf
Copy link
Owner

Wulf commented Sep 29, 2023

Thanks @percy507 and good catch! Should be fixed in 2.0.1

@Wulf Wulf closed this as completed Sep 29, 2023
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

No branches or pull requests

2 participants