import { flatten } from "https://deno.land/x/valibot@v0.24.0/src/error/index.ts";
Flatten the error messages of a Vali error.
Type Parameters
optional
TSchema extends BaseSchema | BaseSchemaAsync = anyParameters
error: ValiError
A Vali error.
Returns
Flat errors.
Flatten the error messages of issues.
Type Parameters
optional
TSchema extends BaseSchema | BaseSchemaAsync = anyParameters
issues: Issues
The issues.
Returns
Flat errors.