UNPKG

ngx-mat-errors

Version:

NgxMatErrors provides an easy, yet flexible solution for displaying error messages in a MatFormField.

18 lines (17 loc) 756 B
import { type Provider } from '@angular/core'; import type { FormFieldControl } from './types'; import * as i0 from "@angular/core"; /** * This class contains the logic of getting the default control of a MatFormField. * Extend it to implement a custom getter method. */ export declare class NgxMatErrorControl { protected readonly matFormField: import("@angular/material/form-field").MatFormField | null; get(): undefined | FormFieldControl | FormFieldControl[]; static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatErrorControl, never>; static ɵprov: i0.ɵɵInjectableDeclaration<NgxMatErrorControl>; } /** * Provides the default control accessor of a MatFormField. */ export declare function provideDefaultNgxMatErrorControl(): Provider;