aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/form-validators/form-validator.model.ts
blob: 248a3b1d32c0b22300809b1b39520e6bdf4dacc8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { ValidatorFn } from '@angular/forms'

export type BuildFormValidator = {
  VALIDATORS: ValidatorFn[],
  MESSAGES: { [ name: string ]: string }
}

export type BuildFormArgument = {
  [ id: string ]: BuildFormValidator | BuildFormArgument
}

export type BuildFormDefaultValues = {
  [ name: string ]: string | string[] | BuildFormDefaultValues
}