UNPKG

angular-reactive-validation

Version:

Reactive Forms validation shouldn't require the developer to write lots of HTML to show validation messages. This library makes it easy.

11 lines (10 loc) 422 B
import { UntypedFormControl, ValidationErrors } from '@angular/forms'; export declare class ValidationError { control: UntypedFormControl; key: string; errorObject: ValidationErrors; constructor(control: UntypedFormControl, key: string, errorObject: ValidationErrors); static fromFirstError(control: UntypedFormControl): ValidationError | undefined; hasMessage(): boolean; getMessage(): any; }