sequelize-typescript
sequelize-typescript copied to clipboard
Typing Issues with latest Sequelize Version 6.20
Hi,
I have tried to upgrade an application to the latest Sequelize Version and it fails due to lots of typing issues like these:
node_modules/sequelize-typescript/dist/associations/shared/union-association-options.d.ts:1:59 - error TS2614: Module '"sequelize"' has no exported member 'ManyToManyOptions'. Did you mean to use 'import ManyToManyOptions from "sequelize"' instead?
1 import { BelongsToOptions, HasManyOptions, HasOneOptions, ManyToManyOptions } from 'sequelize';
~~~~~~~~~~~~~~~~~
node_modules/sequelize-typescript/dist/associations/shared/union-association-options.d.ts:2:47 - error TS2314: Generic type 'BelongsToOptions<SourceKey, TargetKey>' requires 2 type argument(s).
2 export declare type UnionAssociationOptions = BelongsToOptions | HasManyOptions | HasOneOptions | ManyToManyOptions;
~~~~~~~~~~~~~~~~
node_modules/sequelize-typescript/dist/associations/shared/union-association-options.d.ts:2:66 - error TS2314: Generic type 'HasManyOptions<SourceKey, TargetKey>' requires 2 type argument(s).
2 export declare type UnionAssociationOptions = BelongsToOptions | HasManyOptions | HasOneOptions | ManyToManyOptions;
~~~~~~~~~~~~~~
node_modules/sequelize-typescript/dist/associations/shared/union-association-options.d.ts:2:83 - error TS2314: Generic type 'HasOneOptions<SourceKey, TargetKey>' requires 2 type argument(s).
2 export declare type UnionAssociationOptions = BelongsToOptions | HasManyOptions | HasOneOptions | ManyToManyOptions;
~~~~~~~~~~~~~
Are you aware of that? Will this be fixed?
BG