-
Notifications
You must be signed in to change notification settings - Fork 83
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
Generate type
s instead of interface
s and enum
s
#280
Comments
Enums to types would be a great addition. |
For types support there should be implemented additional synax nodes. Unfortunately, I don't have time currently for such a change :( Actually it can be done using exising architecture even without modifying the source code. I would appreciate if someone will do that in a way I could integrate it into the product |
Yes! Having type unions instead of TS enums would be very handy, especially given how bad TS enums are sometimes |
At the time I opened the issue I attempted to create an AST node for types but couldn't quite figure out how to properly integrate it with the library
I understand, maintaining OSS is really difficult, especially with all the other stuff we have to deal with
How so? Can you give any pointers to how this could be achieved? |
Is it possible to generate TypeScript ´type
declarations instead of
interface`s? If not can it be added to the library similar to this:The text was updated successfully, but these errors were encountered: