fix(tanstack-query): narrow live options defaults type#1568
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR corrects the TypeScript type definition for the ChangesType Definition Correction
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
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 |
There was a problem hiding this comment.
Code Review
This pull request updates the type definition of experimental_liveOptions in procedure-utils.ts to accept Partial<QueryOptionsIn> instead of Partial<StreamedOptionsIn>. Additionally, the type tests in procedure-utils.test-d.ts have been updated to reflect this change, including a new test case verifying that queryFnOptions is correctly rejected. I have no feedback to provide as there are no review comments.
|
Actionable comments posted: 0 |
More templates
@orpc/ai-sdk
@orpc/arktype
@orpc/client
@orpc/contract
@orpc/experimental-durable-iterator
@orpc/hey-api
@orpc/interop
@orpc/json-schema
@orpc/nest
@orpc/openapi
@orpc/openapi-client
@orpc/otel
@orpc/experimental-pino
@orpc/experimental-publisher
@orpc/experimental-publisher-durable-object
@orpc/experimental-ratelimit
@orpc/react
@orpc/react-query
@orpc/experimental-react-swr
@orpc/server
@orpc/shared
@orpc/solid-query
@orpc/standard-server
@orpc/standard-server-aws-lambda
@orpc/standard-server-fastify
@orpc/standard-server-fetch
@orpc/standard-server-node
@orpc/standard-server-peer
@orpc/svelte-query
@orpc/tanstack-query
@orpc/trpc
@orpc/valibot
@orpc/vue-colada
@orpc/vue-query
@orpc/zod
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Reviewed changes — narrowed experimental_liveOptions defaults type from StreamedOptionsIn to QueryOptionsIn and added a type test rejecting streamed-only queryFnOptions.
procedure-utils.ts— changedexperimental_ProcedureUtilsDefaults.experimental_liveOptionsto useQueryOptionsIninstead ofStreamedOptionsInprocedure-utils.test-d.ts— updated test description and added@ts-expect-errorassertion ensuringqueryFnOptionsis rejected for live defaults
✅ No new issues found.
Kimi K2 | 𝕏

Summary
Tests
Summary by CodeRabbit
Bug Fixes
Tests