Runs zod parse on the raw object input, and then if successful returns the typed object. Otherwise an exception is thrown.
The zod schema to parse the input against.
The raw object input to parse.
The typed object.
An exception if the input does not match the schema.
Runs zod parse on the raw object input, and then if successful returns the typed object. Otherwise an exception is thrown.