class-validator
Version:
Decorator-based property validation for classes.
11 lines (10 loc) • 330 B
TypeScript
import { ValidationOptions } from '../ValidationOptions';
export declare const IS_INT = "isInt";
/**
* Checks if value is an integer.
*/
export declare function isInt(val: unknown): val is Number;
/**
* Checks if value is an integer.
*/
export declare function IsInt(validationOptions?: ValidationOptions): PropertyDecorator;