ngx-error-message
Version:
A package to display error messages in angular forms
12 lines (11 loc) • 416 B
TypeScript
export type JsonMessage<T> = Record<string, T> | Record<string, Record<string, T>>;
export type ErrorWhenType = 'dirty' | 'invalid' | 'pristine' | 'touched' | 'untouched';
export interface ClassNames {
control: string;
message: string;
}
export interface ErrorMessageConfig {
validationsPrefix?: string;
patternsPrefix?: string;
errorMessages?: Record<string, string | Record<string, string>>;
}