Formats zod 3.x error in human readable format
ეს სკრიპტი არ უნდა იყოს პირდაპირ დაინსტალირებული. ეს ბიბლიოთეკაა, სხვა სკრიპტებისთვის უნდა ჩართეთ მეტა-დირექტივაში // @require https://update.greasyfork.org/scripts/565798/1752557/Zod%203x%20Error%20Formatter.js.
Formats zod 3.x error in human readable format
Formats zod error or zod error like object
const zodError = z.string().safeParse(Number()).error
const readableError = ZodErrorFormatter.format(zodError)
console.error(readableError)