Skip to main content
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://deno.land/x/zod@v3.18.0/mod.ts";
const { ZodFormattedError } = z;

Type Parameters

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