UNPKG

ngx-custom-validators-angular-14

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