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

Option to generate classes instead of interfaces #31

Open
dzuvic opened this issue Jul 17, 2017 · 0 comments
Open

Option to generate classes instead of interfaces #31

dzuvic opened this issue Jul 17, 2017 · 0 comments
Milestone

Comments

@dzuvic
Copy link
Owner

dzuvic commented Jul 17, 2017

There a several use cases having classes instead of interfaces:

  • creating objects adhering a generated interface is a bit cumbersome (either using partial or filling up all values)
  • sometimes it might be useful exposing constants
  • the type guard should be a member of a class
  • possibility to generate type specific default values

The mapping DSL has to be changed reflecting the default values of a type. The Default value should be changed by an TSOption Annotation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant