Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with sequelize 6.0.0-beta.6 #785

Closed
AlexDede opened this issue May 18, 2020 · 1 comment
Closed

Incompatible with sequelize 6.0.0-beta.6 #785

AlexDede opened this issue May 18, 2020 · 1 comment

Comments

@AlexDede
Copy link

Versions

  • sequelize: 6.0.0-beta.6
  • sequelize-typescript: 1.1.0
  • typescript: 3.9.2

I'm submitting a ...

[ ] bug report
[x] feature request

Actual behavior:

2322 Type 'typeof MyClassName' is not assignable to type 'Includeable'. Type 'typeof MyClassName' is not assignable to type 'typeof Model'. Types of property 'init' are incompatible. Type '(attributes: ModelAttributes<Model<any, any>>, options: InitOptions<Model<any, any>>) => void' is not assignable to type '<M extends Model<any, any> = Model<any, any>>(this: ModelCtor<M>, attributes: ModelAttributes<M>, options: InitOptions<M>) => Model<...>'.

Expected behavior:

sequelize-typescript must be compatible with sequelize 6.0.0-beta.6 or higher

@kf6kjg
Copy link

kf6kjg commented May 19, 2020

Just created PR #787 to solve this. Please give that a try and report your results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants