Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/methods/flatten/flatten.ts>FlatErrors

The modular and type safe schema library for validating structural data 🤖
Latest
type alias FlatErrors
import { type FlatErrors } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/methods/flatten/flatten.ts";

Flat errors type.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>> | undefined
definition: Prettify<{ readonly root?: [string, ...string[]]; readonly nested?: Prettify<Readonly<Partial<Record<TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>> ? IssueDotPath<TSchema> : string, [string, ...string[]]>>>>; readonly other?: [string, ...string[]]; }>