parse
Summary
Validate a value and return the typed output or throw a ValidationError.
Signature
function parse<input, output>(
schema: StandardSchemaV1<input, output>,
value: unknown,
options: ParseOptions,
): output;
Params
schema
The schema to validate against
value
The value to validate
options
Validation options
Returns
The validated output value