class-validator
Version:
Decorator-based property validation for classes.
11 lines (10 loc) • 404 B
TypeScript
import { ValidationOptions } from '../ValidationOptions';
export declare const IS_NEGATIVE = "isNegative";
/**
* Checks if the value is a negative number smaller than zero.
*/
export declare function isNegative(value: unknown): boolean;
/**
* Checks if the value is a negative number smaller than zero.
*/
export declare function IsNegative(validationOptions?: ValidationOptions): PropertyDecorator;