import {Validator} from './Validator'; import {ValidatorArray} from './ValidatorArray'; export class AllUnCheckedValidatorArray extends ValidatorArray { constructor(value?: Validator[], target?: E, event?: Event, autoValid = true) { super(value, target, event, autoValid); } valid(): boolean { return !((this.value ?? []).filter(it => it.checked).length > 0); } }