Closed wangduanduan closed 5 years ago
打开@types/sequelize里面的源码,发现原来@types/sequelize只支持4.x版本的Sequelize,5.x版本的Sequelize是自带定义文件的。
// ***************************** IMPORTANT NOTE *****************************
// These types are for the 4.x branch of Sequelize. As of Sequelize 5.0,
// types are packaged directly within Sequelize itself. Please target the
// Sequelize-provided types for any changes related to versions >= 5.0.
已经安装了
使用db.ts, 下面的写法,还是报错