tRPCttRPC
Powered by
cssetianC
tRPC•2y ago•
3 replies
cssetian

Is there a way to configure a trpc router to require an output() schema to be specified?

I would like to require the output() schema to be specified on all the queries and mutations in my project through some sort of typecheck or linting rule, as a way of documenting API though code and making our api specifications more explicit. Is there any way through router config or through linting config to force this to be specified? I am unfortunately not familiar with writing custom eslint rules so I don't know how to approach it if I wanted to write a custom eslint rule myself
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Question: Is there a way to have a base interface for Trpc router?
MayankMMayank / ❓-help
2y ago
Is there any easy way to create a Type for a trpc router
JokcyJJokcy / ❓-help
3y ago
Is there a way to call procedures more directly without a router?
Michael SchaufelbergerMMichael Schaufelberger / ❓-help
2y ago
Is there a way to split a trpc api across multiple lambdas ?
Ahmed EidAAhmed Eid / ❓-help
3y ago