I am dealing with a situation in which i need to use sequelize with an existing MySQL database, hence i figured it'd be better if I could generate the Models for sequelize with some kind of generator,
Found sequelize-auto and successfully generated Models into my code.
Reading their documentation they provide many optional flags to the generator command, one of them is -z or --typescript in order to generate the Models as typescript files, unfortunately, the generated code is still in js format and the file are .js suffix.
Tried searching for others experiencing the same issues, found nothing :/
Any idea what am i missing?
My command:
sequelize-auto -h myDb -d database_name -u some_user -x some_password -p 3306 -e mysql -o src/models -C --typescript
Thank you