type ErrorLike = { message : string ; path : string ; } ; export class ValidationError extends Error { name = "ValidationError" ; constructor ( message ? , public path = "" , public inner = [ ] ) { super ( message ) ; } }