diff options
Diffstat (limited to 'client/src/app/shared/forms/form-validators/form-validator.service.ts')
-rw-r--r-- | client/src/app/shared/forms/form-validators/form-validator.service.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/client/src/app/shared/forms/form-validators/form-validator.service.ts b/client/src/app/shared/forms/form-validators/form-validator.service.ts index 5c3d3e4bd..d10e17ca7 100644 --- a/client/src/app/shared/forms/form-validators/form-validator.service.ts +++ b/client/src/app/shared/forms/form-validators/form-validator.service.ts | |||
@@ -3,11 +3,12 @@ import { Injectable } from '@angular/core' | |||
3 | import { FormReactiveErrors, FormReactiveValidationMessages } from '@app/shared/forms/form-reactive' | 3 | import { FormReactiveErrors, FormReactiveValidationMessages } from '@app/shared/forms/form-reactive' |
4 | import { I18n } from '@ngx-translate/i18n-polyfill' | 4 | import { I18n } from '@ngx-translate/i18n-polyfill' |
5 | 5 | ||
6 | export type BuildFormValidator = { | ||
7 | VALIDATORS: ValidatorFn[], | ||
8 | MESSAGES: { [ name: string ]: string } | ||
9 | } | ||
6 | export type BuildFormArgument = { | 10 | export type BuildFormArgument = { |
7 | [ id: string ]: { | 11 | [ id: string ]: BuildFormValidator |
8 | VALIDATORS: ValidatorFn[], | ||
9 | MESSAGES: { [ name: string ]: string } | ||
10 | } | ||
11 | } | 12 | } |
12 | export type BuildFormDefaultValues = { | 13 | export type BuildFormDefaultValues = { |
13 | [ name: string ]: string | string[] | 14 | [ name: string ]: string | string[] |