UNPKG

2.7 kBTypeScriptView Raw
1// Type definitions for color-convert 2.0
2// Project: https://github.com/qix-/color-convert#readme
3// Definitions by: Junyoung Clare Jang <https://github.com/Airlun>
4// Piotr Błażejewicz <https://github.com/peterblazejewicz>
5// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
7import conversions = require('./conversions');
8import route = require('./route');
9
10export const rgb: typeof conversions.rgb &
11 route.rgb &
12 {
13 [F in keyof route.rgb]: {
14 raw: route.rgb[F];
15 };
16 };
17
18export const hsl: typeof conversions.hsl &
19 route.hsl &
20 {
21 [F in keyof route.hsl]: {
22 raw: route.hsl[F];
23 };
24 };
25
26export const hsv: typeof conversions.hsv &
27 route.hsv &
28 {
29 [F in keyof route.hsv]: {
30 raw: route.hsv[F];
31 };
32 };
33
34export const hwb: typeof conversions.hwb &
35 route.hwb &
36 {
37 [F in keyof route.hwb]: {
38 raw: route.hwb[F];
39 };
40 };
41
42export const cmyk: typeof conversions.cmyk &
43 route.cmyk &
44 {
45 [F in keyof route.cmyk]: {
46 raw: route.cmyk[F];
47 };
48 };
49
50export const xyz: typeof conversions.xyz &
51 route.xyz &
52 {
53 [F in keyof route.xyz]: {
54 raw: route.xyz[F];
55 };
56 };
57
58export const lab: typeof conversions.lab &
59 route.lab &
60 {
61 [F in keyof route.lab]: {
62 raw: route.lab[F];
63 };
64 };
65
66export const lch: typeof conversions.lch &
67 route.lch &
68 {
69 [F in keyof route.lch]: {
70 raw: route.lch[F];
71 };
72 };
73
74export const hex: typeof conversions.hex &
75 route.hex &
76 {
77 [F in keyof route.hex]: {
78 raw: route.hex[F];
79 };
80 };
81
82export const keyword: typeof conversions.keyword &
83 route.keyword &
84 {
85 [F in keyof route.keyword]: {
86 raw: route.keyword[F];
87 };
88 };
89
90export const ansi16: typeof conversions.ansi16 &
91 route.ansi16 &
92 {
93 [F in keyof route.ansi16]: {
94 raw: route.ansi16[F];
95 };
96 };
97
98export const ansi256: typeof conversions.ansi256 &
99 route.ansi256 &
100 {
101 [F in keyof route.ansi256]: {
102 raw: route.ansi256[F];
103 };
104 };
105
106export const hcg: typeof conversions.hcg &
107 route.hcg &
108 {
109 [F in keyof route.hcg]: {
110 raw: route.hcg[F];
111 };
112 };
113
114export const apple: typeof conversions.apple &
115 route.apple &
116 {
117 [F in keyof route.apple]: {
118 raw: route.apple[F];
119 };
120 };
121
122export const gray: typeof conversions.gray &
123 route.gray &
124 {
125 [F in keyof route.gray]: {
126 raw: route.gray[F];
127 };
128 };