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