import {Validator} from './Validator'; export class NotEmptyValidator extends Validator { constructor(value?: T, target?: E, event?: Event, autoValid = true) { super(value, target, event, autoValid); } valid(): boolean { const value = this.value; // console.log('NotEmptyValidator', value, value !== undefined && value !== null && ((value as any)?.length ?? 0) > 0) return value !== undefined && value !== null && ((value as any)?.length ?? 0) > 0; } }