fluent-ts-validator
Version:
A fluent validator written in TypeScript
15 lines (14 loc) • 476 B
TypeScript
import { PropertyValidator } from "../PropertyValidator";
/**
* Validates if given value is not empty (!== '', !== null, !== undefined)
* or in case of collections (Array, Set, Map) if they do contain any elements
* (length > 0, size > 0).
*
* @export
* @class IsNotEmptyValidator
* @implements {PropertyValidator<any>}
*/
export declare class IsNotEmptyValidator implements PropertyValidator<any> {
private isEmptyValidator;
isValid(input: any): boolean;
}