UNPKG

class-validator

Version:

Decorator-based property validation for classes.

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