How to Configure Sequelize and Sequelize-CLI to work with TypeScript
I have a project to maintain using sequelize and typescript and I tried as hard as possible to configure them, but I couldn't. I cannot generate models using the cli, and sometimes when I find some configurations online the cli generates a js file, or sometimes generates a ts file but cannot migrate.
Note: when I work using sequelize and javascript everything works fine, but for this I have to work with typescript.
I need an explanation for how to configure sequelize and typescript from scratch, or the configuration code if possible.
I even used sequelize-typescript, sequelize-cli-typescript dependencies and I couldn't configure the application to create a model or migrate the database using sequelize.