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