types/sequelize

init() function is missing from @types/sequelize?

Closed this issue · 4 comments

class Student extends Model {}

Student.init() // <-- not working.

Are you sure you are using the right typings? This repo definitely contains them.

Hey @felixfbecker When i use the one on npm @ types/sequelize, it doesn't have. but the one that i installed from typings has.

npm i @types/sequelize <--- doesn't have
typings install sequelize <--- has

this is crazy, apparently i can get types definition from the following:

  • npm i @types/sequelize --> this give me version 4.0.69
  • npm i types/sequelize -> this give me version 4.0.0 i think this is the correct 1 (but why when i run this command it installs to node_modules/@types/sequelize eventhough there's no @ in front)
  • typings install sequelize

Because we don't have microsoft/types-publisher#4 yet