DEV Community

Discussion on: Sequelize + TypeScript - What you need to know

Collapse
 
20101997 profile image
Ah_ch_97 • Edited

I think it will be better to keep the db Object that is being generated based on the files inside the models so you can avoid :
Book.belongsTo called with something that's not a subclass of Sequelize.Model error