fix(query-devtools): align onClose setter type#10607
fix(query-devtools): align onClose setter type#10607grzdev wants to merge 1 commit intoTanStack:mainfrom
Conversation
📝 WalkthroughWalkthroughThis patch release updates the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
View your CI Pipeline Execution ↗ for commit b979abe
☁️ Nx Cloud last updated this comment at |
🎯 Changes
Align the
onClosesetter type inTanstackQueryDevtoolsPanelwith the updated callback signature.The
onClosecallback was previously changed from() => unknownto() => voidacross devtools packages, but the internal panel class still exposed:setOnClose(onClose: () => unknown)This updates:
This ensures consistency with the public devtools API and avoids leaking the outdated unknown return type.
No runtime behavior changes.
✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
Bug Fixes
voidreturn type, improving type safety.