An interface implemented by classes that perform synchronous validation.
interface Validator { validate(control: AbstractControl<any, any>): ValidationErrors | null; optional registerOnValidatorChange(fn: () => void): void;}