From cc4bf76c13e38e9065d49161b6e0485657424577 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 29 Dec 2021 15:33:24 +0100 Subject: Handle async validators --- client/src/app/shared/form-validators/form-validator.model.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared/form-validators') diff --git a/client/src/app/shared/form-validators/form-validator.model.ts b/client/src/app/shared/form-validators/form-validator.model.ts index 6f2472ccd..31c253b9b 100644 --- a/client/src/app/shared/form-validators/form-validator.model.ts +++ b/client/src/app/shared/form-validators/form-validator.model.ts @@ -1,7 +1,9 @@ -import { ValidatorFn } from '@angular/forms' +import { AsyncValidatorFn, ValidatorFn } from '@angular/forms' export type BuildFormValidator = { VALIDATORS: ValidatorFn[] + ASYNC_VALIDATORS?: AsyncValidatorFn[] + MESSAGES: { [ name: string ]: string } } -- cgit v1.2.3