Skip to main content
Module

x/zod/external.ts>ZodError#format

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

Returns

ZodFormattedError<T>

Parameters

mapper: (issue: ZodIssue) => U

Returns

ZodFormattedError<T, U>

Parameters

optional
_mapper: any