IDE not recognizing Sequelize Constructor Follow
The official docs for Sequelize show to use `const sequelize = new Sequelize()` for creating a connection pool.
But when used in the IDE, hints dont work unless I use `const sequelize = new Sequelize.Sequelize()`
How do I fix this in Webstorm ?
Please sign in to leave a comment.
Well... this happens because of a way the module typings are defined
The error will go away if you change the import to
as suggested in https://sequelize.org/master/, or to
per instructions at https://sequelize.org/master/manual/typescript.html
Thanks