@chayns/colors
Version:
JavaScript utility functions for the calculation of colors for chayns
15 lines (14 loc) • 920 B
TypeScript
import type { RGB1, RGB255, RGBA1, RGBA255 } from '../types/rgb';
import type { HSL, HSLA } from '../types/hsl';
import type { HSV, HSVA } from '../types/hsv';
export declare function isString(value: any): value is string;
export declare function isNumber(value: any): value is number;
export declare function isNullOrUndefined(value: any): value is (null | undefined);
export declare function isObject(value: any): value is Record<any, any>;
export declare function isInInterval(value: any, min: number, max: number): boolean;
export declare function isHex(value: string): boolean;
export declare function isRgbString(value: string): boolean;
export declare function isRgb255(value: any): value is (RGB255 | RGBA255);
export declare function isRgb1(value: any): value is (RGB1 | RGBA1);
export declare function isHsl(value: any): value is (HSL | HSLA);
export declare function isHsv(value: any): value is (HSV | HSVA);