Skip to content

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

@bcazur

Description

@bcazur

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions