Ask questionsSequelize v5.13.0 not supported
<!-- Before submitting an issue, please consult our docs (https://github.com/RobinBuschmann/sequelize-typescript) and check whether your problem was already reported (https://github.com/RobinBuschmann/sequelize-typescript/issues) -->
<!-- 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 (https://github.com/sequelize/sequelize/issues) -->
Versions <!-- Please let us know which sequelize, sequelize-typescript and typescript version are you using -->
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
Is it possible that not all folders (such as
interfaces) are being properly exposed when you distribute the plugin?