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
Export procedure builder #5444
Export procedure builder #5444
Conversation
…o they can be bound to the real types returned by the built procedures
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@ymc9 is attempting to deploy a commit to the trpc Team on Vercel. A member of the Team first needs to authorize it. |
@@ -478,7 +478,7 @@ function ExportStatus< | |||
} | |||
|
|||
function ExportsList(props: { list: Factory.ExportRouteLike['list'] }) { | |||
const exportsList = props.list.useQuery(); | |||
const exportsList = props.list.useQuery({}); |
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.
Hm, that isn’t right. The test was correct, so there’s an issue in the types. I may need to take a look
This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you. |
Closes #
🎯 Changes
Add
AnyProcedureBuilder
type export for properly typing a procedure builder. Useful for declaring factory functions that taket.procedure
(or a custom procedure made out of it) as input and return a router record.This PR is modified from #5443 by @Nick-Lucas .
✅ Checklist