inferRouterClient<AppRouter>
11.0.0-rc.648
^3.23.8
type Client = { register: { mutate: Resolver<{ input: { name: string; email: string; password: string; }; output: any; errorShape: DefaultErrorShape; transformer: false; }>; }; login: { ...; }; ... 22 more ...; candidateDocuments: { ...; }; }
export const register = publicProcedure .input( z.object({ name: z.string(), email: z.string(), password: z.string(), }) ) .output(z.boolean()) .mutation(async ({ input: { name, email, password } }) => { // ------ });