Skip to content

Function: validateSchema() ​

validateSchema<T>(schema, data): T

Defined in: src/schemas.ts:106

Validates data against a schema and throws detailed errors

Type Parameters ​

T ​

T

Parameters ​

schema ​

ZodSchema<T>

The schema to validate against

data ​

unknown

The data to validate

Returns ​

T

The validated data

Throws ​

If validation fails

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.