sequelize-typescript-generator
sequelize-typescript-generator copied to clipboard
[Feature Request] Option to export just TypeScript interfaces/classes
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.