填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

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