angular-super-validator
Version:
Angular4 Deep Form Validator
16 lines (15 loc) • 505 B
TypeScript
import { ValidatorFn } from '@angular/forms';
export declare class SuperValidators {
/**
* Validator that requires controls to have a value greater than a number.
*/
static min(min: number): ValidatorFn;
/**
* Validator that requires controls to have a value less than a number.
*/
static max(max: number): ValidatorFn;
static hasNumber(): ValidatorFn;
static hasUpper(): ValidatorFn;
static hasLower(): ValidatorFn;
static hasSpecial(): ValidatorFn;
}