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>

22 lines (21 loc) 1.13 kB
import { WritableSignal } from '@angular/core'; import { AbstractControl, FormGroupDirective, NgForm } from '@angular/forms'; import { Observable } from 'rxjs'; import { ErrorStateMatchers } from './error-state-matchers.service'; import { MaybeParentForm } from './form.directive'; import * as i0 from "@angular/core"; export declare class AllErrorsStateService { private state; registerControl(control: AbstractControl, parentForm: MaybeParentForm): void; unregisterControl(control: AbstractControl): void; getControlState(control: AbstractControl): { control: AbstractControl<any, any>; parentForm: FormGroupDirective | NgForm | null; watchedEvents$: Observable<any>; registeredInstancesCount: number; errors: WritableSignal<Record<number, boolean>>; } | undefined; static ɵfac: i0.ɵɵFactoryDeclaration<AllErrorsStateService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<AllErrorsStateService>; } export declare function getErrorStateMatcher(errorStateMatchers: ErrorStateMatchers, showWhen: string): import("@ngspot/ngx-errors").IErrorStateMatcher;