method z.ZodError.prototype.flattenimport { z } from "https://dotland.deno.dev/x/zod@v3.21.2/index.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>