intiserxI
tRPC3y ago
1 reply
intiserx

zod input validation from ts type

I imported a type using import type { WebhookEvent } from "@clerk/nextjs/api";. Is there a way to use the type to validate the input with zod for a procedure?

createUser: publicProcedure    .input(something here to use WebhookEvent with z.object)
Was this page helpful?