-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
type(query-core): add Override #7916
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 967fd48. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 2 targetsSent with 💌 from NxCloud. |
More templates
@tanstack/angular-query-devtools-experimental
@tanstack/angular-query-experimental
@tanstack/eslint-plugin-query
@tanstack/query-async-storage-persister
@tanstack/query-broadcast-client-experimental
@tanstack/query-core
@tanstack/query-devtools
@tanstack/query-persist-client-core
@tanstack/query-sync-storage-persister
@tanstack/react-query
@tanstack/react-query-devtools
@tanstack/react-query-next-experimental
@tanstack/react-query-persist-client
@tanstack/solid-query
@tanstack/solid-query-devtools
@tanstack/solid-query-persist-client
@tanstack/svelte-query
@tanstack/svelte-query-devtools
@tanstack/svelte-query-persist-client
@tanstack/vue-query
@tanstack/vue-query-devtools
commit: |
Co-authored-by: Lee HyunJae (whale) <71202076+2-NOW@users.noreply.github.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7916 +/- ##
===========================================
+ Coverage 44.51% 61.85% +17.34%
===========================================
Files 195 135 -60
Lines 7279 4680 -2599
Branches 1629 1307 -322
===========================================
- Hits 3240 2895 -345
+ Misses 3662 1543 -2119
+ Partials 377 242 -135 |
export type Override<TTargetA, TTargetB> = { | ||
[AKey in keyof TTargetA]: AKey extends keyof TTargetB | ||
? TTargetB[AKey] | ||
: TTargetA[AKey] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I extract useful Override type from each framework packages to @tanstack/query-core to share it
No description provided.