]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/form-validators/form-validator.model.ts
Implement two factor in client
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / form-validators / form-validator.model.ts
CommitLineData
cc4bf76c 1import { AsyncValidatorFn, ValidatorFn } from '@angular/forms'
7ed1edbb
C
2
3export type BuildFormValidator = {
9df52d66 4 VALIDATORS: ValidatorFn[]
cc4bf76c
C
5 ASYNC_VALIDATORS?: AsyncValidatorFn[]
6
7ed1edbb
C
7 MESSAGES: { [ name: string ]: string }
8}
9
10export type BuildFormArgument = {
11 [ id: string ]: BuildFormValidator | BuildFormArgument
12}
13
14export type BuildFormDefaultValues = {
21e493d4 15 [ name: string ]: number | string | string[] | BuildFormDefaultValues
7ed1edbb 16}