UNPKG

@zarlex/ngx-accessor

Version:

This library provides an adapter to interact with Angular forms. It also provides an adapter to work with object signals and forms

10 lines (9 loc) 615 B
import { StaticProvider } from '@angular/core'; import { AbstractControl, RequiredValidator as NgRequiredValidator, ValidationErrors } from '@angular/forms'; import * as i0 from "@angular/core"; export declare const REQUIRED_VALIDATOR: StaticProvider; export declare class RequiredValidator extends NgRequiredValidator { validate(control: AbstractControl): ValidationErrors | null; static ɵfac: i0.ɵɵFactoryDeclaration<RequiredValidator, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<RequiredValidator, ":not([type=checkbox])[required][ngxAccessor]", never, {}, {}, never, never, true, never>; }