UNPKG

class-validator

Version:

Decorator-based property validation for classes.

11 lines (10 loc) 378 B
import { ValidationOptions } from '../ValidationOptions'; export declare const IS_DEFINED: string; /** * Checks if value is defined (!== undefined, !== null). */ export declare function isDefined(value: any): boolean; /** * Checks if value is defined (!== undefined, !== null). */ export declare function IsDefined(validationOptions?: ValidationOptions): PropertyDecorator;