error-options.d-CGdTZUYk.d.ts 977 B

1234567891011121314151617
  1. import { AbstractControl, FormGroupDirective, NgForm } from '@angular/forms';
  2. import * as i0 from '@angular/core';
  3. /** Error state matcher that matches when a control is invalid and dirty. */
  4. declare class ShowOnDirtyErrorStateMatcher implements ErrorStateMatcher {
  5. isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
  6. static ɵfac: i0.ɵɵFactoryDeclaration<ShowOnDirtyErrorStateMatcher, never>;
  7. static ɵprov: i0.ɵɵInjectableDeclaration<ShowOnDirtyErrorStateMatcher>;
  8. }
  9. /** Provider that defines how form controls behave with regards to displaying error messages. */
  10. declare class ErrorStateMatcher {
  11. isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
  12. static ɵfac: i0.ɵɵFactoryDeclaration<ErrorStateMatcher, never>;
  13. static ɵprov: i0.ɵɵInjectableDeclaration<ErrorStateMatcher>;
  14. }
  15. export { ErrorStateMatcher as E, ShowOnDirtyErrorStateMatcher as S };