UNPKG

@lunaeme/circe-core

Version:
18 lines (17 loc) 590 B
import { FormArray } from '@angular/forms'; export declare type CustomErrorKeys = 'repeated'; export interface CustomErrorMessages { [key: string]: string; } export interface CustomError { [key: string]: CustomErrorRepeatedValues; } export interface CustomErrorRepeatedValues { repeatedValues: string; } export declare class CustomValidationService { private readonly _customMessages; constructor(); static formArrayRepeatedValues(control: FormArray): CustomError | null; getCustomMessages(keys: CustomErrorKeys | Array<CustomErrorKeys>): CustomErrorMessages; }