Is it possible to pass a zod schema as a prop?
I have this
what is the proper way to type the schema prop on the receiving end?
what is the proper way to type the schema prop on the receiving end?
Solution
owo7 if you want to accept any zod schema then you could do something like
But if want to accept a specific schema
But if want to accept a specific schema