ValidatorFn

A function that receives a control and synchronously returns a map of validation errors if present, otherwise null.

      
      interface ValidatorFn {
  (control: AbstractControl): ValidationErrors | null
}
    

方法

      
      (control: AbstractControl): ValidationErrors | null
    
参数
control AbstractControl
返回值

ValidationErrors | null