UNPKG

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