Repository navigation
Conversation
* docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Implementation of route metadata
|
This pull request is being automatically deployed with Vercel (learn more). next-prisma-starter – ./examples/next-prisma-starter🔍 Inspect: https://vercel.com/trpc/next-prisma-starter/331eVSMnwWhn9FVfevoVDijFpXtC www – ./www🔍 Inspect: https://vercel.com/trpc/www/C5Cub14pXZ7EYuHEUbVW5iY2QWG3 |
|
Is this really required? It could just automatically omit the ones that don't fulfill the requirement for swagger? |
|
I suppose it's not really required in the context of OpenAPI if we go with the approach shared here #1724 (comment). But this change doesn't affect current functionality nor introduces much of a TS overhead, and type narrowing is always good. Won't be offended if you want to close this one for now. |
|
Regardless, would be great if we could export |
LegacyRouter is removed on the |
|
This pull request has been locked because it had no new activity for 30 days. If you think, this PR is still necessary, create a new one with the same branch. Thank you. |
Router methods input type narrowing
Ensure router method
TInputtype (input:) satisfiesTInputtype defined in theProcedureRecord<...>for eachTQueries | TMutations | TSubscriptions.This non-breaking change is required for composing type-safe OpenAPI compliant tRPC routers in a future PR.
Additional changes
Routertype (returned byrouter()) asTRPCRouter.