Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

z.typeToFlattenedError

import type { z } from "https://esm.sh/zod@3.25.76/index.d.cts"; 

const { typeToFlattenedError } = z;
type typeToFlattenedError<T, U = string> = {
formErrors: U[];
fieldErrors: [P in allKeys<T>]?: U[];
}
;

§Type Parameters

§
U = string
[src]

§Type

§
{
formErrors: U[];
fieldErrors: [P in allKeys<T>]?: U[];
}
[src]