Elven
Elven
TtRPC
Created by Elven on 4/21/2024 in #❓-help
Error with v11 when using batching
Thank you very much for the quick reaction !
9 replies
TtRPC
Created by Elven on 4/21/2024 in #❓-help
Error with v11 when using batching
Thanks. I don't have a previously working release with it working, I've just set up trpc.
I'm not sure I will have time to make a repro in the next few days/weeks unfortunately. Will try when I can.
9 replies
TtRPC
Created by Elven on 4/16/2024 in #❓-help
Typescript type error with latest version
The issue is fixed. I'm not entirely sure why, after removing node_modules dir and reinstalling everything and restarting vscode types were ok
3 replies
TtRPC
Created by Elven on 4/16/2024 in #❓-help
Typescript type error with latest version
For added context my router:
const t = initTRPC.create();

const publicProcedure = t.procedure;
const router = t.router;

export const appRouter = router({
hello: publicProcedure.input(z.string().nullish()).query(({ input }) => {
return `Hello ${input ?? "World!"}!`;
}),
});

export type AppRouter = typeof appRouter;
const t = initTRPC.create();

const publicProcedure = t.procedure;
const router = t.router;

export const appRouter = router({
hello: publicProcedure.input(z.string().nullish()).query(({ input }) => {
return `Hello ${input ?? "World!"}!`;
}),
});

export type AppRouter = typeof appRouter;
3 replies