Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/deps.ts>z.ZodError#format

Universal process manager built in Deno
Go to Latest
method z.ZodError.prototype.format
Re-export
import { z } from "https://deno.land/x/pup@1.0.0-rc.3/deps.ts";
const { ZodError } = z;

Returns

ZodFormattedError<T>

Parameters

mapper: (issue: ZodIssue) => U

Returns

ZodFormattedError<T, U>