method z.ZodError.prototype.flattenimport { z } from "https://dotland.deno.dev/x/zod@v3.20.5/mod.ts"; const { ZodError } = z; flatten(): typeToFlattenedError<T>flatten<U>(mapper?: (issue: ZodIssue) => U): typeToFlattenedError<T, U>ReturnstypeToFlattenedError<T>Type ParametersUParametersoptionalmapper: (issue: ZodIssue) => UReturnstypeToFlattenedError<T, U>