fluent-ts-validator
Version:
A fluent validator written in TypeScript
15 lines (14 loc) • 470 B
TypeScript
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);
}