An alternative function to zodSchema.parse() that can be used to strictly parse Zod schemas.
The Zod output type.
The Zod input type.
The Zod internal types based on the output and input types.
The type of error to throw on invalid data.
The Zod schema to use in parsing.
The data to parse.
Optional
A custom error to throw on invalid data (defaults to DataError).
DataError
The parsed data from the Zod schema.
If the given data cannot be parsed according to the schema.
An alternative function to zodSchema.parse() that can be used to strictly parse Zod schemas.