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

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

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
type alias FlatErrors
import { type FlatErrors } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/methods/flatten/index.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[]]; }>