Skip to main content
Module

x/zod/ZodError.ts>ZodError#format

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
method ZodError.prototype.format
import { ZodError } from "https://deno.land/x/zod@v3.19.1/ZodError.ts";

Returns

ZodFormattedError<T>

Parameters

mapper: (issue: ZodIssue) => U

Returns

ZodFormattedError<T, U>