sipp
Version:
An Opinionated, High-Productivity MVC Web Framework in TypeScript
11 lines (10 loc) • 383 B
TypeScript
import { ValidationError } from 'class-validator';
export declare class ValidationErrorCollection {
private readonly errors;
private readonly errorMap;
constructor(errors: ValidationError[]);
get isValid(): boolean;
hasError(property: string): boolean;
getError(property: string): ValidationError | undefined;
errorMessages(property: string): string[];
}