overlookmotel/sequelize-hierarchy

How to use it in Typescript?

Opened this issue · 1 comments

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.

imagen
it requires typings that are not provided. maybe one of the forks has it. will look into it too actually and will let you know