UNPKG

class-validator

Version:

Decorator-based property validation for classes.

17 lines (16 loc) 632 B
import { ValidationOptions } from '../ValidationOptions'; export declare const IS_NOT_EMPTY_OBJECT = "isNotEmptyObject"; /** * Checks if the value is valid Object & not empty. * Returns false if the value is not an object or an empty valid object. */ export declare function isNotEmptyObject(value: unknown, options?: { nullable?: boolean; }): boolean; /** * Checks if the value is valid Object & not empty. * Returns false if the value is not an object or an empty valid object. */ export declare function IsNotEmptyObject(options?: { nullable?: boolean; }, validationOptions?: ValidationOptions): PropertyDecorator;