intiserx
intiserx16mo ago

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)
createUser: publicProcedure .input(something here to use WebhookEvent with z.object)
0 Replies
No replies yetBe the first to reply to this messageJoin