aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/form-validators
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-29 15:33:24 +0100
committerChocobozzz <me@florianbigard.com>2022-01-03 14:20:52 +0100
commitcc4bf76c13e38e9065d49161b6e0485657424577 (patch)
treed7ecc6bd58037c41587eb911776b676592985cd1 /client/src/app/shared/form-validators
parente2aeb8ad0f3055d54ac416ec5908d26b70aac4be (diff)
downloadPeerTube-cc4bf76c13e38e9065d49161b6e0485657424577.tar.gz
PeerTube-cc4bf76c13e38e9065d49161b6e0485657424577.tar.zst
PeerTube-cc4bf76c13e38e9065d49161b6e0485657424577.zip
Handle async validators
Diffstat (limited to 'client/src/app/shared/form-validators')
-rw-r--r--client/src/app/shared/form-validators/form-validator.model.ts4
1 files changed, 3 insertions, 1 deletions
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 @@
1import { ValidatorFn } from '@angular/forms' 1import { AsyncValidatorFn, ValidatorFn } from '@angular/forms'
2 2
3export type BuildFormValidator = { 3export type BuildFormValidator = {
4 VALIDATORS: ValidatorFn[] 4 VALIDATORS: ValidatorFn[]
5 ASYNC_VALIDATORS?: AsyncValidatorFn[]
6
5 MESSAGES: { [ name: string ]: string } 7 MESSAGES: { [ name: string ]: string }
6} 8}
7 9