UNPKG

904 BTypeScriptView Raw
1import { ValidationOptions } from '../ValidationOptions';
2export declare const IS_HSL = "isHSL";
3/**
4 * Check if the string is an HSL (hue, saturation, lightness, optional alpha) color based on CSS Colors Level 4 specification.
5 * Comma-separated format supported. Space-separated format supported with the exception of a few edge cases (ex: hsl(200grad+.1%62%/1)).
6 * If given value is not a string, then it returns false.
7 */
8export declare function isHSL(value: unknown): boolean;
9/**
10 * Check if the string is an HSL (hue, saturation, lightness, optional alpha) color based on CSS Colors Level 4 specification.
11 * Comma-separated format supported. Space-separated format supported with the exception of a few edge cases (ex: hsl(200grad+.1%62%/1)).
12 * If given value is not a string, then it returns false.
13 */
14export declare function IsHSL(validationOptions?: ValidationOptions): PropertyDecorator;