| 89 | * @publicApi |
| 90 | */ |
| 91 | export interface Validator { |
| 92 | /** |
| 93 | * @description |
| 94 | * Method that performs synchronous validation against the provided control. |
| 95 | * |
| 96 | * @param control The control to validate against. |
| 97 | * |
| 98 | * @returns A map of validation errors if validation fails, |
| 99 | * otherwise null. |
| 100 | */ |
| 101 | validate(control: AbstractControl): ValidationErrors | null; |
| 102 | |
| 103 | /** |
| 104 | * @description |
| 105 | * Registers a callback function to call when the validator inputs change. |
| 106 | * |
| 107 | * @param fn The callback function |
| 108 | */ |
| 109 | registerOnValidatorChange?(fn: () => void): void; |
| 110 | } |
| 111 | |
| 112 | /** |
| 113 | * A base class for Validator-based Directives. The class contains common logic shared across such |
no outgoing calls
no test coverage detected
searching dependent graphs…