Skip to content

Function: safeValidateSchema() ​

safeValidateSchema<T>(schema, data): { success: true; data: T; } | { success: false; errors: string[]; }

Defined in: src/schemas.ts:124

Validates data against a schema and returns result with success flag

Type Parameters ​

T ​

T

Parameters ​

schema ​

ZodSchema<T>

The schema to validate against

data ​

unknown

The data to validate

Returns ​

{ success: true; data: T; } | { success: false; errors: string[]; }

The validation result

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