-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Typescript issue with where function #10724
Comments
@sushantdhiman can you clarify on the nature of |
🎉 This issue has been resolved in version 5.2.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The same error is in 6.x now |
Dude this error still exists in v6.3 and typescript is crying about it. 😖 |
The typings surrounding that utility were completely rewritten since 6.3. The issue may be fixed in v6.35.2+ and/or v7.0.0-alpha.34+ |
It seems to have fixed itself for now. Was on 6.32.1 version. Still on same version but works now. So shrug |
What are you doing?
When calling
sequelize.where
and passing a condition that contains an operator symbol, a typescript error occurs. For example:This code was previously working when using
@types/sequelize
for typescript definitions. The move to built-in typeLogicType
for the logic parameter has caused the issue.I have created a minimal reproduction here.
What do you expect to happen?
To accept the use of an operator symbol when building a where condition.
What is actually happening?
A typescript error:
Dialect: any
Dialect version: n/a
Database version: n/a
Sequelize version: 5.2.12
Tested with latest release: Yes - as above
The text was updated successfully, but these errors were encountered: