const myRouter = router({ getData: publicBaseProcedure.query(() => ({ foo: "bar" })) })
const myRouter = router({ getData: publicBaseProcedure.query(() => ({ foo: "bar" } as const)) })
Join the Discord to ask follow-up questions and connect with the community
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
4,854 Members