UNPKG

@dooboostore/dom-render

Version:
13 lines 612 B
import { Validator } from './Validator'; export class NotEmptyValidator extends Validator { constructor(value, target, event, autoValid = true) { super(value, target, event, autoValid); } valid() { var _a; const value = this.value; // console.log('NotEmptyValidator', value, value !== undefined && value !== null && ((value as any)?.length ?? 0) > 0) return value !== undefined && value !== null && ((_a = value === null || value === void 0 ? void 0 : value.length) !== null && _a !== void 0 ? _a : 0) > 0; } } //# sourceMappingURL=NotEmptyValidator.js.map