Intellisense for Instance fields
vi-afk opened this issue · comments
vi-afk commented
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?