sequelize / cli

The Sequelize CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intellisense for Instance fields

vi-afk opened this issue · comments

Is it possible?

I set up my models like this:

const models = {
  /** @type Sequelize.Model */ user: null,
}
models['user'] = db.import('models/user.js');

where user.js contains db.define

now, I do something like let user = await models.user.findOne(), and I get Instance.
how can I get Intellisense for something like user.login and user.password?