parse()
Parses and validates the input, throwing an error if validation fails.
parse(input: unknown): Schema.Infer<TBuilder>;
Parameters
- input — The value to validate.
Return value
The validated and transformed data.
Errors
Throws an error with the validation message if validation fails.
Related
class Schema
A class that represents a validation schema for input values, objects, and arrays.
