UNPKG

ngx-formcontrol-errors-msgs

Version:

A directive for showing errors in Angular form controls on reactive forms

16 lines (15 loc) 813 B
import { ValidationErrors } from '@angular/forms'; import { KeyValueObject } from '../../types'; import { ErrorMessage } from '../error-msg-component-factory/error-msg-component'; import { ErrorMsgParser } from './error-msg-parser'; import * as i0 from "@angular/core"; export declare class ErrorMsgParserService implements ErrorMsgParser { private customErrorMessages; private errorMessages; constructor(customErrorMessages: KeyValueObject); getMessageByKey(key: string): string; errorMessageParser(errorKey: string, valueKey: string, value: string | number | null): string; parse(error: ValidationErrors): ErrorMessage[]; static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMsgParserService, [{ optional: true; }]>; static ɵprov: i0.ɵɵInjectableDeclaration<ErrorMsgParserService>; }