-
Notifications
You must be signed in to change notification settings - Fork 286
IFindOptions can be generic ? #161
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
Comments
Yeah, makes perfect sense. So that all the static functions in |
Hey @RobinBuschmann, PR submitted :) |
Awesome!! Can we get a new beta version ? Thanks as usual for the super fast response time! |
Strange, the PR build succeeded but after it was merged, the build fails now. Can see the issue? tsc cannot compile some specs anymore. Can you take care of it? Otherwise I will do it tomorrow. |
@RobinBuschmann Check #163 |
Perfect, thanks! I will publish a new beta-release now |
Its done! |
I don't quite see how this accomplishes the same thing as
In that case, the user is allowed to generify
In particular, I'm also concerned that this may have broken or impaired our ability to use custom operators (ie. the legacy Admittedly, I have no clue how arrays or |
As an aside, I have vague concerns about this library's "drift" away from |
Hello,
I was wondering if
IFindOptions
could be a generic type. SequelizeWhereOptions
are defined as:If we make
IFindOptions
generic we can take advantage of typesafety on thewhere
key. Basically, https://github.com/RobinBuschmann/sequelize-typescript/blob/master/lib/interfaces/IFindOptions.ts#L14 would be:The text was updated successfully, but these errors were encountered: