@gfticket/common
Version:
An auth package to make micro-service authentication easy to integrate for other services
15 lines (14 loc) • 406 B
TypeScript
import { ValidationError } from "express-validator";
import { CustomError } from "./custom-error";
export declare class RequestValidationError extends CustomError {
errors: ValidationError[];
statusCode: number;
constructor(errors: ValidationError[]);
serializeErrors(): ({
message: any;
field: string;
} | {
message: any;
field?: undefined;
})[];
}