返回 AiToEarn
zod-error-with-input.exception.ts
根目录 / project / aitoearn-backend / libs / common / src / exceptions / zod-error-with-input.exception.ts
1 import type { z } from 'zod'
2 import { ZodRealError } from 'zod'
3
4 export class ZodErrorWithInput extends ZodRealError {
5 constructor(issues: z.core.$ZodIssue[], public readonly input: unknown) {
6 super(issues)
7 this.name = 'ZodErrorWithInput'
8 }
9 }
10
10 lines TYPESCRIPT