-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Remove predicate typing for query filters #8958
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
Remove predicate typing for query filters #8958
Conversation
View your CI Pipeline Execution ↗ for commit 209af08.
☁️ Nx Cloud last updated this comment at |
So @TkDodo I'm in two minds if we should go as far as stripping out the generics entirely. It's more of a breaking change to remove them than to leave them unused, especially since the 4th type param (query key) does get used currently. What do you think? |
TypeScript errors on unused type parameters:
so what option do we have other than deleting them? |
Should be possible to ignore the warnings I think? So it's more a question of where your mind is at as a maintainer I didn't do anything today beyond start this draft, there will be tests failing as well that I can sort out either way |
this isn’t just an eslint warning - it’s a TS error that you would need to silence with |
84eb7d3
to
8064c84
Compare
Hey @TkDodo I've stripped this out everywhere, might need synchronising with tRPC as I think we made some changes to support these generics but that should be quick |
failing test seems to be flake rather than anything I've done, could use a retry |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8958 +/- ##
===========================================
+ Coverage 44.47% 59.01% +14.54%
===========================================
Files 203 138 -65
Lines 8104 5358 -2746
Branches 1804 1424 -380
===========================================
- Hits 3604 3162 -442
+ Misses 4066 1907 -2159
+ Partials 434 289 -145 🚀 New features to boost your workflow:
|
Fixes #8768