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

Generated Enum Types Need to be Compiled #40

Open
jtimmons opened this issue Jul 31, 2019 · 0 comments
Open

Generated Enum Types Need to be Compiled #40

jtimmons opened this issue Jul 31, 2019 · 0 comments

Comments

@jtimmons
Copy link

The types that are generated by the CLI tool are all compile-time only types aside from the enum type. Regular typescript enums contain both compile-time and runtime information and so need to be compiled into a js source in order to be correctly used.

If we switch to using const enums, then there is no need to compile the generated type file and it can behave more like a declaration file - which based on the structure of the output, seems like the original intent.

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

1 participant