-
Notifications
You must be signed in to change notification settings - Fork 644
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
Using the Typescript compiler to generate model definitions from classes #136
Comments
Hello! You can absolutely do the opposite, if you have a MST model, you can extract a valid TS interface by doing as described here https://github.com/mobxjs/mobx-state-tree/blob/master/README.md#typescript--mst |
Thank you for the quick answer! |
@mattiamanzati There's no problem with default values at all, is there?
|
@TomMarius
|
Could a Typescript class contain all the necessary information via types and annotations to generate a model definition?
Just some transformer examples:
microsoft/TypeScript#14419 (comment)
The text was updated successfully, but these errors were encountered: