Allow choosing `type` instead of `interface`
akafaneh opened this issue · 3 comments
akafaneh commented
I use type
in my project almost for everything, and i just want to keep it consistent, so if we can have a property to choose between them if possible.
Great tool btw, thanks
rikukissa commented
That's definitely something that I'd want to see configurable as well. The type generation is done by json-to-ts library that I've forked here. My first guess is that the change would have to be done there. I'll have a look as soon as I have time, but if you wish to contribute, I'm very much open to PRs :)
akafaneh commented
@rikukissa Check the PR please and let me know what you think