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

Fix invalid typescript generation for empy enums #23

Merged
merged 5 commits into from
Apr 11, 2024
Merged

Fix invalid typescript generation for empy enums #23

merged 5 commits into from
Apr 11, 2024

Conversation

siefkenj
Copy link
Owner

@siefkenj siefkenj commented Apr 11, 2024

#[derive(Tsify)]
enum Foo {}

produces code

export type Foo = ;

which is not valid Typescript.

This PR changes the output to

export type Foo = void;

@siefkenj siefkenj changed the title Make sure types are generated in submodules Fix invalid typescript generation for empy enums Apr 11, 2024
@siefkenj siefkenj merged commit 011268d into main Apr 11, 2024
3 checks 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