cssetian
cssetian
Explore posts from servers
TtRPC
Created by cssetian on 3/21/2024 in #❓-help
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
4 replies