Skip to content

Type declarations is not included inside published npm package #1183

@ngoclong19

Description

@ngoclong19

What you are doing?

Trying to get type hint in VS Code and it does not work.

'use strict';
/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {

What do you expect to happen?

I expect queryInterface and Sequelize are properly typed.

What is actually happening?

The two parameters has type any.

In folder node_modules/sequelize-cli, the file types.d.ts is missing.
I also checked the download tarbal from npmjs.org.

Dialect: any
Database version: XXX
Sequelize CLI version: 6.5.1
Sequelize version: 6.25.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions