import {Valid, Validator} from './Validator'; export class ValidValidator extends Validator { constructor(public validCallBack: Valid, value?: T, target?: E, event?: Event, autoValid = true) { super(value, target, event, autoValid); } valid(value?:T, target?:E, event?:Event): boolean { return this.validCallBack(value, target, event); } }