Formats zod 3.x error in human readable format
이 스크립트는 직접 설치하는 용도가 아닙니다. 다른 스크립트에서 메타 지시문 // @require https://update.greatest.deepsurf.us/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)