]>
Commit | Line | Data |
---|---|---|
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 | } |