-
-
Notifications
You must be signed in to change notification settings - Fork 12
fix(tanstack): additional typing fixes #360
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
Conversation
|
Claude finished @ymc9's task —— View job PR Review: Additional Typing FixesTodo List:
Review SummaryThis PR contains small but important typing and test fixes for the TanStack Query integration. Overall, the changes are well-targeted and improve the code quality. Changes Analysis1. Type Fixes in
|
WalkthroughGeneric type constraints were simplified for Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code graph analysis (1)packages/clients/tanstack-query/src/react.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Pull Request Overview
This PR corrects type parameter definitions for batch mutation hooks and fixes a test mock configuration.
- Fixed type parameters for
useUpdateManyanduseDeleteManyhooks by removing incorrect array suffix - Corrected test mock to use
.put()instead of.delete()for a User update operation
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/clients/tanstack-query/src/react.ts | Removed incorrect array suffix [] from UpdateManyArgs and DeleteManyArgs type parameters in hook definitions |
| packages/clients/tanstack-query/test/react-query.test.tsx | Fixed nock mock to use .put() instead of .delete() for User update endpoint |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary by CodeRabbit