sequelize-typescript-generator icon indicating copy to clipboard operation
sequelize-typescript-generator copied to clipboard

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

Open bcazur opened this issue 3 years ago • 0 comments

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.

bcazur avatar Jul 28 '22 14:07 bcazur