UNPKG

ngx-custom-validators-angular-14

Version:
17 lines (16 loc) 768 B
import { OnInit, OnChanges, SimpleChanges } from '@angular/core'; import { Validator, AbstractControl } from '@angular/forms'; import * as i0 from "@angular/core"; export declare class MaxDateValidator implements Validator, OnInit, OnChanges { maxDate: any; private validator; private onChange; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; validate(c: AbstractControl): { [key: string]: any; }; registerOnValidatorChange(fn: () => void): void; static ɵfac: i0.ɵɵFactoryDeclaration<MaxDateValidator, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<MaxDateValidator, "[maxDate][formControlName],[maxDate][formControl],[maxDate][ngModel]", never, { "maxDate": "maxDate"; }, {}, never, never, false>; }