How to use it in Typescript?
Opened this issue · 1 comments
fcb10max commented
Hello. How I could use it with typescript? I installed in with npm, but I understand that this package is written in javascript, also it does not have types in @types registry. I tried declaring types in *.d.ts file with following line: declare module 'sequelize-hierarchy';
but it just silenced import error. When I try to use hierarchy: true
option in Sequelize.define
, typescript says that it does not know anything about this option. I looked for this problem in internet, found no answer, so I decided to write it here.
I hope for a help from you guys. Thanks for attention.
gabboman commented