UNPKG

zod-error

Version:

Utilities to format and customize Zod error messages

11 lines (10 loc) 337 B
import { ObjectNotation } from '../../types'; import { z } from 'zod'; /** * Converts a Zod Issue path to object notation. * @export * @param {z.ZodIssue['path']} path * @param {ObjectNotation} options * @return {*} {string} */ export declare function getObjectNotation(path: z.ZodIssue['path'], options: ObjectNotation): string;