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

Type alias instead of interface? #20

Open
prideout opened this issue Apr 30, 2023 · 0 comments
Open

Type alias instead of interface? #20

prideout opened this issue Apr 30, 2023 · 0 comments

Comments

@prideout
Copy link

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

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

No branches or pull requests

1 participant