W3cubDocs

/Angular

AsyncValidatorFn

A function that receives a control and returns a Promise or observable that emits validation errors if present, otherwise null.

API

interface AsyncValidatorFn {
  (control: AbstractControl<any, any, any>): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
}
Promise<ValidationErrors | null> | Observable<ValidationErrors | null>
@paramcontrolAbstractControl<any, any, any>
@returnsPromise<ValidationErrors | null> | Observable<ValidationErrors | null>

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/forms/AsyncValidatorFn