UNPKG

617 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2import ValidatorJS from 'validator';
3export declare const IS_CURRENCY = "isCurrency";
4/**
5 * Checks if the string is a valid currency amount.
6 * If given value is not a string, then it returns false.
7 */
8export declare function isCurrency(value: unknown, options?: ValidatorJS.IsCurrencyOptions): boolean;
9/**
10 * Checks if the string is a valid currency amount.
11 * If given value is not a string, then it returns false.
12 */
13export declare function IsCurrency(options?: ValidatorJS.IsCurrencyOptions, validationOptions?: ValidationOptions): PropertyDecorator;