Repository navigation
When on typescript project, sequelize-cli still generates javascript files. #1436
Description
Activity
Thanks for opening this! You can fork this repository, push the changes to there and then open a pull request here
Reacted by Malik Samad Khan+1
Hi WikiRik,
I have opened a PR for this issue and it needs your review. please have a look and help me get in making it merged into package.The PR has 1 regex change which is reported by CodeQL and it needs approving from reviewer as I think its a false positive.
thanks.
Reacted by Shlomi SassonI wish there was an option to generate TypeScript version of the project.
@malik-samad
A year later and your pull request is still not merged.Why exactly isn't this merged ?
Why exactly isn't this merged ?
Hi, thanks for checking.
The reason is because the PR needs approval from the reviewer. I can't merge it on my own.Reacted by Shlomi SassonWhy exactly isn't this merged ?
Hi, thanks for checking. The reason is because the PR needs approval from the reviewer. I can't merge it on my own.
Since i am a beginner when it comes to things as such, is there any work around to implement your solution ?
@WikiRik any update on ETA to approve the PR? 🙏
@WikiRik any update on ETA to approve the PR? 🙏
There's no ETA. The main devs just don't care.
Why exactly isn't this merged ?
Hi, thanks for checking. The reason is because the PR needs approval from the reviewer. I can't merge it on my own.
Since i am a beginner when it comes to things as such, is there any work around to implement your solution ?
Yes, You can actually check my other repo for this implementation.
https://github.com/malik-samad/sequelize-with-typscript
the repo link above contains the initial boilerplate implementation of using typescript with Sequelize. in that repo you will that I have created sequelize models in typescript instead of javascript. and it is working just fine.
(Until my PR is not merged in the Sequelize-CLI repo) you can also use my modified Sequelize-cli package to make it support the typescript
NPM: https://www.npmjs.com/package/sequelize-cli-ts-js
Repo: https://github.com/malik-samad/sequelize-cli-ts-jsI hope this will help in your situation.
@WikiRik any update on ETA to approve the PR? 🙏
check my repos and NPM package for your reference to get you blocker resolved until my PR gets approved and merged.
I don't know how long it may take, maybe it never get merged 😄 seems like the repo is abandoned or something.
the workaround I did is tested and used in production level projects.
@WikiRik any update on ETA to approve the PR? 🙏
There's no ETA. The main devs just don't care.
yeh, you are right. otherwise I should atleast get some response by now. its has been more than a year now since I have opened the PR.
- added a commit that references this issue
on May 26, 2026
What I am doing?
I'm using Sequelize-cli in a typescript project and it is not generating .ts files and I have to then update those files extensions and make manual changes to the file for making it compatible in my project.
What I expect to happen?
I want to have the CLI work the same for my typescript file as it does for a javascript project. I expect the cli to generate proper migration, see and model files with .ts extension.
What is actually happening?
When I try to run
sequelize initor other migration cli, it will generate javascript files instead of typescript as expected.Dialect: mysql
Database version: latest
Sequelize CLI version: latest
Sequelize version: latest
Would you resolve this issue by submitting a Pull Request?
I have completed and fully tested the configuration and changes needed for this issue fix, but I am not able to push my work into the repository. Could you please help me get access so that I can push my work on this issue?