Ask questionsSequelize v5.13.0 not supported

<!-- Before submitting an issue, please consult our docs ( and check whether your problem was already reported ( -->

<!-- Please make sure you are posting an issue pertaining to sequelize-typescript. If you are having an issue with sequelize itself, please consult the sequelize team ( -->

Versions <!-- Please let us know which sequelize, sequelize-typescript and typescript version are you using -->

  • sequelize: 5.13.0
  • sequelize-typescript: 1.0.0-beta.3
  • typescript: 3.5.3

I'm submitting a ... <!-- (check one with "x") --> [ x] bug report [ ] feature request

Actual behavior: <!-- Describe how the bug manifests. --> Unable to build project. See below for tsc output...

node_modules/sequelize-typescript/dist/sequelize/sequelize/sequelize.d.ts:12:5 - error TS2416: Property 'model' in type 'Sequelize' is not assignable to the same property in base type 'Sequelize'.
  Type '(model: string | typeof Model) => typeof Model' is not assignable to type '(modelName: string) => ModelCtor<Model<any, any>>'.
    Type 'typeof Model' is not assignable to type 'ModelCtor<Model<any, any>>'.
      Type 'typeof Model' is not assignable to type 'new () => Model<any, any>'.
        Cannot assign an abstract constructor type to a non-abstract constructor type.

12     model(model: string | typeof Model): typeof Model;

Expected behavior: <!-- Describe what the behavior would be without the bug. --> I assume this should work. The documentation says sequelize v5 is supported. I have reverted back to sequelize v5.12.3 and all seems happy.

Steps to reproduce: <!-- Please explain the steps required to duplicate the issue, especially if you are able to provide a sample application. --> Upgrade to sequelize v5.13.0 and try to build.


Answer questions acconrad

@RobinBuschmann I actually am having trouble getting this to work. I pulled the latest from sequelize-typescript@next and the thing is I can see in the code that interfaces/* should be exported via index.ts but I'm not seeing it show up when I actually install the folder into my node_modules

Screen Shot 2019-08-20 at 5 05 09 PM

Is it possible that not all folders (such as interfaces) are being properly exposed when you distribute the plugin?

Adam Conrad acconrad @indigo-ag Boston, MA Director of Engineering @indigo-ag 🚜 Advisor for Fisherman 🥡 Speaker / Host for Software Engineering Radio 🎙️ Writer for Software Daily ✏️
Github User Rank List