rikukissa / typehole

TypeScript development tool for Visual Studio Code that helps you automate creating the initial static typing for runtime values

Home Page:https://marketplace.visualstudio.com/items?itemName=rikurouvila.typehole

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow choosing `type` instead of `interface`

akafaneh opened this issue · comments

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

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 :)

@rikukissa Check the PR please and let me know what you think

Added in 1.7.0 👍