]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/form-validators/form-validator.model.ts
Add ability to not send an email for registration
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / form-validators / form-validator.model.ts
1 import { AsyncValidatorFn, ValidatorFn } from '@angular/forms'
2
3 export type BuildFormValidator = {
4 VALIDATORS: ValidatorFn[]
5 ASYNC_VALIDATORS?: AsyncValidatorFn[]
6
7 MESSAGES: { [ name: string ]: string }
8 }
9
10 export type BuildFormArgument = {
11 [ id: string ]: BuildFormValidator | BuildFormArgument
12 }
13
14 export type BuildFormDefaultValues = {
15 [ name: string ]: boolean | number | string | string[] | BuildFormDefaultValues
16 }