Module

x/zod/mod.ts>z.ZodFormattedError

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
type alias z.ZodFormattedError
import { type z } from "https://dotland.deno.dev/x/zod@v3.20/mod.ts";
const { ZodFormattedError } = z;

Type Parameters

T
optional
U = string
definition: { _errors: U[]; } & (NonNullable<T> extends [any, ...any[]] ? [K in keyof NonNullable<T>]?: ZodFormattedError<NonNullable<T>[K]> : NonNullable<T> extends any[] ? { [k: number]: ZodFormattedError<NonNullable<T>[number]>; } : NonNullable<T> extends object ? [K in keyof NonNullable<T>]?: ZodFormattedError<NonNullable<T>[K]> : unknown)