Creates a Zod schema for a custom function with defined interface.
The function itself is not validated beyond being a function. But the interface for the function is fully passed through the dynamic zod types.
The error message to display when the validation fails.
A Zod schema for the function.
Creates a Zod schema for a custom function with defined interface.
The function itself is not validated beyond being a function. But the interface for the function is fully passed through the dynamic zod types.