1 | import { ValidationOptions } from '../ValidationOptions';
|
2 | export declare const IS_NUMBER = "isNumber";
|
3 | /**
|
4 | * Options to be passed to IsNumber decorator.
|
5 | */
|
6 | export interface IsNumberOptions {
|
7 | allowNaN?: boolean;
|
8 | allowInfinity?: boolean;
|
9 | maxDecimalPlaces?: number;
|
10 | }
|
11 | /**
|
12 | * Checks if a given value is a number.
|
13 | */
|
14 | export declare function isNumber(value: unknown, options?: IsNumberOptions): boolean;
|
15 | /**
|
16 | * Checks if a value is a number.
|
17 | */
|
18 | export declare function IsNumber(options?: IsNumberOptions, validationOptions?: ValidationOptions): PropertyDecorator;
|