UNPKG

fluent-ts-validator

Version:
15 lines (14 loc) 470 B
import { PropertyValidator } from "../PropertyValidator"; /** * Validates if given value is empty (=== '', === null, === undefined) * or in case of certain iterables if they do not contain any element * (length === 0, size === 0). * * @export * @class IsEmptyValidator * @implements {PropertyValidator<any>} */ export declare class IsEmptyValidator implements PropertyValidator<any> { isValid(input: any): boolean; private isEmptyCollection(input); }