UNPKG

@ngspot/ngx-errors

Version:

<p align="center"> <img width="20%" height="20%" src="https://github.com/DmitryEfimenko/ngspot/blob/main/packages/ngx-errors/package/assets/logo.png?raw=true"> </p>

18 lines (17 loc) 811 B
import { IErrorStateMatcher } from './custom-error-state-matchers'; import * as i0 from "@angular/core"; export type ProvidedErrorStateMatcherKeys = 'touched' | 'dirty' | 'touchedAndDirty' | 'formIsSubmitted'; export type MatchersKeys = ProvidedErrorStateMatcherKeys | string; export declare class ErrorStateMatchers { private showOnTouchedErrorStateMatcher; private showOnDirtyErrorStateMatcher; private showOnTouchedAndDirtyErrorStateMatcher; private showOnSubmittedErrorStateMatcher; private customErrorStateMatchers; private matchers; constructor(); get(showWhen: string): IErrorStateMatcher | undefined; validKeys(): string[]; static ɵfac: i0.ɵɵFactoryDeclaration<ErrorStateMatchers, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ErrorStateMatchers>; }