ngx-mat-lib
Version:
A bunch of utilities and components to use in your Angular 7+ apps!
9 lines (8 loc) • 327 B
TypeScript
import { ValidatorFn } from "@angular/forms";
/**
* Accepts a validator and a quantity.
* Applies the validator and checks if at least n fields of the formGroup are valid
* @param validator
* @param howMany
*/
export declare function xmatValidatorForAtLeast(validator: ValidatorFn, howMany?: number): ValidatorFn;