tRPCttRPC
Powered by
intiserxI
tRPC•3y ago•
1 reply
intiserx

zod input validation from ts type

I imported a type using
import type { WebhookEvent } from "@clerk/nextjs/api";
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)
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Generic Zod as Input Type
RealityShiftRRealityShift / ❓-help
3y ago
Zod Output validation failed
JohnyJJohny / ❓-help
9mo ago
client side Validation with ZOD
Mohammed AnasMMohammed Anas / ❓-help
3y ago