title: Sequelize model intellisense not working in Vscode
body: <p>I setup sequelize using <code>sequelize-cli</code> which generated below file,</p>
  <pre><code>const fs = require('fs');
  const path = require('path');
  
  const { Sequelize } = require('sequelize');
  
  const basename = path.basename(__filename);
  const env = process.env.NODE_ENV || 'development';
  const config = require(`${__dirname}/../../config/config.json`)[env];
  const db = {};
  
  let sequelize;
  if (config.use_env_variable) {
    sequelize = new Sequelize(process.env[config.use_env_variable], config);
  } else {
    sequelize = new Sequelize(config.database, config.username, config.password, config);
  }
  
  fs.readdirSync(__dirname)
    .filter((file) =&gt; {
      return file.indexOf('.') !== 0 &amp;&amp; file !== basename &amp;&amp; file.slice(-3) === '.js';
    })
    .forEach((file) =&gt; {
      const model = require(path.join(__dirname, file))(sequelize, Sequelize.DataTypes);
      db[model.name] = model;
    });
  
  Object.keys(db).forEach((modelName) =&gt; {
    if (db[modelName].associate) {
      db[modelName].associate(db);
    }
  });
  
  db.sequelize = sequelize;
  db.Sequelize = Sequelize;
  
  module.exports = db;
  </code></pre>
  <p>Now when I import models, I don't get intellisense for methods on model,</p>
  <p><a href="https://i.stack.imgur.com/8KIRn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8KIRn.png" alt="enter image description here" /></a></p>
  <p>I tried <code>jsdoc</code> to assigning the model type but it does not work.</p>
  <pre><code>/**
   * Enrollment
   * @typedef {import('sequelize').Model} Enrollment
   */
  </code></pre>