UNPKG

class-validator

Version:

Decorator-based property validation for classes.

11 lines (10 loc) 404 B
import { ValidationOptions } from '../ValidationOptions'; export declare const IS_POSITIVE = "isPositive"; /** * Checks if the value is a positive number greater than zero. */ export declare function isPositive(value: unknown): boolean; /** * Checks if the value is a positive number greater than zero. */ export declare function IsPositive(validationOptions?: ValidationOptions): PropertyDecorator;