1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| declare namespace Color {
| interface IColor {
| val: number[];
| model: string;
| }
| }
| declare class Color {
| constructor(color: string | Color.IColor);
| toRgb(): string;
| toHex(): string;
| toHsl(): string;
| static parse(colorStr: string): Color.IColor;
| }
|
| export = Color;
|
|