UNPKG

458 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_LOCALE = "isLocale";
3/**
4 * Check if the string is a locale.
5 * If given value is not a string, then it returns false.
6 */
7export declare function isLocale(value: unknown): boolean;
8/**
9 * Check if the string is a locale.
10 * If given value is not a string, then it returns false.
11 */
12export declare function IsLocale(validationOptions?: ValidationOptions): PropertyDecorator;