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

[Feature Request] Option to export just TypeScript interfaces/classes #38

Open
bcazur opened this issue Jul 28, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@bcazur
Copy link

bcazur commented Jul 28, 2022

Request: add an option for exporting just the TypeScript interfaces or classes from the DB schema, with no dependency on Model.

Scenario: Using sequelize-typescript on node, want to be able to use data returned by API calls in the browser, where I'm running Svelte with typescript. Example: API call to return a list of books - want to be able to use a Book array on the client side.
This doesn't work because sequelize only works on node (server-side) and you can't even import just the generated classes, since they extend Model from sequelize-typescript.

@spinlud spinlud added the enhancement New feature or request label Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants