Function: validateSafe()
validateSafe<Defined in: schemas.ts:187 DecodeT>(schema,input):ValidationResult<Type<T>>
input against schema and return a discriminated result
instead of throwing. Mirrors the Result<T, E> shape used
elsewhere in @resq-sw/helpers.
Type Parameters
T
T extends AnySchema
Parameters
schema
T
input
unknown
Returns
ValidationResult<Type<T>>
{ success: true, data } on success; { success: false, error } (with the parse-error message) on failure.