Closed alsotang closed 5 years ago
Seems it is not sequelize-typescript
bug.
It is a bug of sequelize
. But I believe a lot users using this library would face the bug.
https://github.com/sequelize/sequelize/issues/10668
Hey @alsotang, we already discussed that here #575. It is not a bug, the requirement to install @types/bluebird
is mentioned in the docs (http://docs.sequelizejs.com/manual/typescript.html). But I agree that this is not very obvious. We consider adding @types/bluebird
to peerDependencies
ok, but the docs is not obvious. and I mistakenly thought it's the problem of beta version of sequelize-typescript
I write this demo project
typescript can not infer the type of
vvvvvv
. Its type is `any.When I run
npm install @types/bluebird
, the type infer works