Sequelize-typescript: Will sequelize-typescript work with sequelize v5?

Created on 10 Apr 2018  路  11Comments  路  Source: RobinBuschmann/sequelize-typescript

@RobinBuschmann , so Sequelize recently released https://github.com/sequelize/sequelize/releases/tag/v5.0.0-beta.2 with various breaking changes, so I wonder how will this affect sequelize-typescript v1 in the near future?

Most helpful comment

With the latest beta release it should work with sequelize@5 as well: sequelize-tyescript@next

All 11 comments

@chanlito Yes it should work. I've tested it a bit with https://github.com/RobinBuschmann/sequelize-typescript-example and it worked very well with v5.

Odd, I get

Cannot find module './v5/Model'

in node_modules/sequelize-typescript/lib/models/Model.js:6:13 with

"sequelize": "^5.0.0-beta.5",
"sequelize-typescript": "^0.6.5-beta.0",

Hey @alexey-pelykh thanks for bringing this up. sequelize@5 will currently only work with sequelize-typescript@canary hope this helps

Thanks for explanation!

With the latest beta release it should work with sequelize@5 as well: sequelize-tyescript@next

Isn't the plan for them to release official TypeScript typings with the original library?
https://github.com/sequelize/sequelize/milestone/18
https://github.com/sequelize/sequelize/issues/9285

Hey @intellix, thanks for bringing this up. So those typings may conflict with @types/sequelize... 馃

@RobinBuschmann sequelize v5.0.0-beta.16 have official typescript typings sequelize/sequelize#10287

@RobinBuschmann will sequelize-typescript move to the official typings? I tried them out with @canary but got alot of conflicts in typing.

@ricklancee Thanks for asking: I've just created an issue for that #529

Close this issue due to initial question is answered

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ReneHollander picture ReneHollander  路  3Comments

JustGreg picture JustGreg  路  4Comments

libvirtadept picture libvirtadept  路  4Comments

nandox5 picture nandox5  路  3Comments

YaroslavOsetrov picture YaroslavOsetrov  路  3Comments