Color.d.ts 304 B

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