tsify icon indicating copy to clipboard operation
tsify copied to clipboard

Type alias instead of interface?

Open prideout opened this issue 2 years ago • 0 comments

The README gives a nice example of generating interface Point { x: number; y: number; }.

However I would like to generate: type Point = { x: number; y: number; }.

Is there a way to tell tsify that I prefer an alias over an interface?

(The README already talks about aliases for generics, but I'm interested in simple object types, not generics.)

prideout avatar Apr 30 '23 03:04 prideout