-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix(query-core, vue-query): fix type inference in setQueryData
when used in functions with explicit return types
#9030
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
fix(query-core, vue-query): fix type inference in setQueryData
when used in functions with explicit return types
#9030
Conversation
View your CI Pipeline Execution ↗ for commit 7c34847.
☁️ Nx Cloud last updated this comment at |
a164952
to
7c34847
Compare
setQueryData
when used in functions with explicit return typessetQueryData
when used in functions with explicit return types
The CI test failure seems unrelated to the changes in this PR. My changes only affect TypeScript type definitions and a type test, with no runtime behavior modifications. The failure appears to be in an unrelated test. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9030 +/- ##
===========================================
+ Coverage 44.58% 59.02% +14.44%
===========================================
Files 203 138 -65
Lines 8106 5360 -2746
Branches 1801 1426 -375
===========================================
- Hits 3614 3164 -450
+ Misses 4060 1907 -2153
+ Partials 432 289 -143 🚀 New features to boost your workflow:
|
Applied the
NoInfer
utility type to the return type ofsetQueryData
to prevent the outer function's return type from affecting the updater function's type inference.closes #9024