@umijs/utils 4.0.0-beta.9 → 4.0.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/compiled/axios/index.d.ts +29 -14
  2. package/compiled/axios/index.js +1 -1
  3. package/compiled/chalk/LICENSE +1 -1
  4. package/compiled/chalk/index.js +1 -1
  5. package/compiled/chalk/package.json +1 -1
  6. package/compiled/chalk/source/index.d.ts +318 -0
  7. package/compiled/chalk/source/vendor/supports-color/index.d.ts +55 -0
  8. package/compiled/color/color-convert/conversions.d.ts +87 -87
  9. package/compiled/color/color-convert/index.d.ts +75 -60
  10. package/compiled/color/color-convert/route.d.ts +271 -271
  11. package/compiled/color/index.d.ts +118 -121
  12. package/compiled/color/index.js +1 -1
  13. package/compiled/color/package.json +1 -4
  14. package/compiled/debug/LICENSE +10 -9
  15. package/compiled/debug/index.js +1 -1
  16. package/compiled/debug/package.json +1 -1
  17. package/compiled/execa/index.d.ts +467 -445
  18. package/compiled/execa/index.js +1 -1
  19. package/compiled/globby/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
  20. package/compiled/globby/@nodelib/fs.scandir/out/index.d.ts +12 -0
  21. package/compiled/globby/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
  22. package/compiled/globby/@nodelib/fs.scandir/out/settings.d.ts +20 -0
  23. package/compiled/globby/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
  24. package/compiled/globby/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
  25. package/compiled/globby/@nodelib/fs.stat/out/index.d.ts +12 -0
  26. package/compiled/globby/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
  27. package/compiled/globby/@nodelib/fs.stat/out/settings.d.ts +16 -0
  28. package/compiled/globby/@nodelib/fs.stat/out/types/index.d.ts +4 -0
  29. package/compiled/globby/@nodelib/fs.walk/out/index.d.ts +14 -0
  30. package/compiled/globby/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
  31. package/compiled/globby/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
  32. package/compiled/globby/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
  33. package/compiled/globby/@nodelib/fs.walk/out/settings.d.ts +30 -0
  34. package/compiled/globby/@nodelib/fs.walk/out/types/index.d.ts +8 -0
  35. package/compiled/globby/LICENSE +9 -0
  36. package/compiled/globby/fast-glob/out/index.d.ts +27 -0
  37. package/compiled/globby/fast-glob/out/managers/tasks.d.ts +22 -0
  38. package/compiled/globby/fast-glob/out/settings.d.ts +164 -0
  39. package/compiled/globby/fast-glob/out/types/index.d.ts +31 -0
  40. package/compiled/globby/index.d.ts +206 -0
  41. package/compiled/globby/index.js +37 -0
  42. package/compiled/globby/package.json +1 -0
  43. package/compiled/pirates/LICENSE +21 -0
  44. package/compiled/pirates/index.d.ts +82 -0
  45. package/compiled/pirates/index.js +1 -0
  46. package/compiled/pirates/package.json +1 -0
  47. package/compiled/pkg-up/LICENSE +1 -1
  48. package/compiled/pkg-up/index.d.ts +55 -44
  49. package/compiled/pkg-up/index.js +1 -1
  50. package/compiled/pkg-up/package.json +1 -1
  51. package/compiled/resolve/index.js +1 -1
  52. package/compiled/strip-ansi/LICENSE +1 -1
  53. package/compiled/strip-ansi/index.d.ts +2 -4
  54. package/compiled/strip-ansi/index.js +1 -1
  55. package/compiled/strip-ansi/package.json +1 -1
  56. package/compiled/yargs-parser/index.js +1 -1
  57. package/dist/getCorejsVersion.d.ts +1 -0
  58. package/dist/getCorejsVersion.js +11 -0
  59. package/dist/index.d.ts +5 -3
  60. package/dist/index.js +6 -5
  61. package/dist/installDeps.js +20 -4
  62. package/dist/isStyleFile.d.ts +5 -0
  63. package/dist/isStyleFile.js +16 -0
  64. package/dist/logger.d.ts +8 -6
  65. package/dist/logger.js +8 -1
  66. package/dist/register.js +21 -22
  67. package/dist/tryPaths.d.ts +1 -0
  68. package/dist/tryPaths.js +11 -0
  69. package/package.json +19 -18
@@ -0,0 +1,318 @@
1
+ // TODO: Make it this when TS suports that.
2
+ // import {ColorInfo, ColorSupportLevel} from('#supports-color');
3
+ import {ColorInfo, ColorSupportLevel} from './vendor/supports-color/index';
4
+
5
+ /**
6
+ Basic foreground colors.
7
+
8
+ [More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
9
+ */
10
+ export type ForegroundColor =
11
+ | 'black'
12
+ | 'red'
13
+ | 'green'
14
+ | 'yellow'
15
+ | 'blue'
16
+ | 'magenta'
17
+ | 'cyan'
18
+ | 'white'
19
+ | 'gray'
20
+ | 'grey'
21
+ | 'blackBright'
22
+ | 'redBright'
23
+ | 'greenBright'
24
+ | 'yellowBright'
25
+ | 'blueBright'
26
+ | 'magentaBright'
27
+ | 'cyanBright'
28
+ | 'whiteBright';
29
+
30
+ /**
31
+ Basic background colors.
32
+
33
+ [More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
34
+ */
35
+ export type BackgroundColor =
36
+ | 'bgBlack'
37
+ | 'bgRed'
38
+ | 'bgGreen'
39
+ | 'bgYellow'
40
+ | 'bgBlue'
41
+ | 'bgMagenta'
42
+ | 'bgCyan'
43
+ | 'bgWhite'
44
+ | 'bgGray'
45
+ | 'bgGrey'
46
+ | 'bgBlackBright'
47
+ | 'bgRedBright'
48
+ | 'bgGreenBright'
49
+ | 'bgYellowBright'
50
+ | 'bgBlueBright'
51
+ | 'bgMagentaBright'
52
+ | 'bgCyanBright'
53
+ | 'bgWhiteBright';
54
+
55
+ /**
56
+ Basic colors.
57
+
58
+ [More colors here.](https://github.com/chalk/chalk/blob/main/readme.md#256-and-truecolor-color-support)
59
+ */
60
+ export type Color = ForegroundColor | BackgroundColor;
61
+
62
+ export type Modifiers =
63
+ | 'reset'
64
+ | 'bold'
65
+ | 'dim'
66
+ | 'italic'
67
+ | 'underline'
68
+ | 'overline'
69
+ | 'inverse'
70
+ | 'hidden'
71
+ | 'strikethrough'
72
+ | 'visible';
73
+
74
+ export interface Options {
75
+ /**
76
+ Specify the color support for Chalk.
77
+
78
+ By default, color support is automatically detected based on the environment.
79
+
80
+ Levels:
81
+ - `0` - All colors disabled.
82
+ - `1` - Basic 16 colors support.
83
+ - `2` - ANSI 256 colors support.
84
+ - `3` - Truecolor 16 million colors support.
85
+ */
86
+ readonly level?: ColorSupportLevel;
87
+ }
88
+
89
+ /**
90
+ Return a new Chalk instance.
91
+ */
92
+ export const Chalk: new (options?: Options) => ChalkInstance; // eslint-disable-line @typescript-eslint/naming-convention
93
+
94
+ export interface ChalkInstance {
95
+ (...text: unknown[]): string;
96
+
97
+ /**
98
+ The color support for Chalk.
99
+
100
+ By default, color support is automatically detected based on the environment.
101
+
102
+ Levels:
103
+ - `0` - All colors disabled.
104
+ - `1` - Basic 16 colors support.
105
+ - `2` - ANSI 256 colors support.
106
+ - `3` - Truecolor 16 million colors support.
107
+ */
108
+ level: ColorSupportLevel;
109
+
110
+ /**
111
+ Use RGB values to set text color.
112
+
113
+ @example
114
+ ```
115
+ import chalk from '../../chalk';
116
+
117
+ chalk.rgb(222, 173, 237);
118
+ ```
119
+ */
120
+ rgb: (red: number, green: number, blue: number) => this;
121
+
122
+ /**
123
+ Use HEX value to set text color.
124
+
125
+ @param color - Hexadecimal value representing the desired color.
126
+
127
+ @example
128
+ ```
129
+ import chalk from '../../chalk';
130
+
131
+ chalk.hex('#DEADED');
132
+ ```
133
+ */
134
+ hex: (color: string) => this;
135
+
136
+ /**
137
+ Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color.
138
+
139
+ @example
140
+ ```
141
+ import chalk from '../../chalk';
142
+
143
+ chalk.ansi256(201);
144
+ ```
145
+ */
146
+ ansi256: (index: number) => this;
147
+
148
+ /**
149
+ Use RGB values to set background color.
150
+
151
+ @example
152
+ ```
153
+ import chalk from '../../chalk';
154
+
155
+ chalk.bgRgb(222, 173, 237);
156
+ ```
157
+ */
158
+ bgRgb: (red: number, green: number, blue: number) => this;
159
+
160
+ /**
161
+ Use HEX value to set background color.
162
+
163
+ @param color - Hexadecimal value representing the desired color.
164
+
165
+ @example
166
+ ```
167
+ import chalk from '../../chalk';
168
+
169
+ chalk.bgHex('#DEADED');
170
+ ```
171
+ */
172
+ bgHex: (color: string) => this;
173
+
174
+ /**
175
+ Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color.
176
+
177
+ @example
178
+ ```
179
+ import chalk from '../../chalk';
180
+
181
+ chalk.bgAnsi256(201);
182
+ ```
183
+ */
184
+ bgAnsi256: (index: number) => this;
185
+
186
+ /**
187
+ Modifier: Reset the current style.
188
+ */
189
+ readonly reset: this;
190
+
191
+ /**
192
+ Modifier: Make the text bold.
193
+ */
194
+ readonly bold: this;
195
+
196
+ /**
197
+ Modifier: Make the text have lower opacity.
198
+ */
199
+ readonly dim: this;
200
+
201
+ /**
202
+ Modifier: Make the text italic. *(Not widely supported)*
203
+ */
204
+ readonly italic: this;
205
+
206
+ /**
207
+ Modifier: Put a horizontal line below the text. *(Not widely supported)*
208
+ */
209
+ readonly underline: this;
210
+
211
+ /**
212
+ Modifier: Put a horizontal line above the text. *(Not widely supported)*
213
+ */
214
+ readonly overline: this;
215
+
216
+ /**
217
+ Modifier: Invert background and foreground colors.
218
+ */
219
+ readonly inverse: this;
220
+
221
+ /**
222
+ Modifier: Print the text but make it invisible.
223
+ */
224
+ readonly hidden: this;
225
+
226
+ /**
227
+ Modifier: Puts a horizontal line through the center of the text. *(Not widely supported)*
228
+ */
229
+ readonly strikethrough: this;
230
+
231
+ /**
232
+ Modifier: Print the text only when Chalk has a color level above zero.
233
+
234
+ Can be useful for things that are purely cosmetic.
235
+ */
236
+ readonly visible: this;
237
+
238
+ readonly black: this;
239
+ readonly red: this;
240
+ readonly green: this;
241
+ readonly yellow: this;
242
+ readonly blue: this;
243
+ readonly magenta: this;
244
+ readonly cyan: this;
245
+ readonly white: this;
246
+
247
+ /*
248
+ Alias for `blackBright`.
249
+ */
250
+ readonly gray: this;
251
+
252
+ /*
253
+ Alias for `blackBright`.
254
+ */
255
+ readonly grey: this;
256
+
257
+ readonly blackBright: this;
258
+ readonly redBright: this;
259
+ readonly greenBright: this;
260
+ readonly yellowBright: this;
261
+ readonly blueBright: this;
262
+ readonly magentaBright: this;
263
+ readonly cyanBright: this;
264
+ readonly whiteBright: this;
265
+
266
+ readonly bgBlack: this;
267
+ readonly bgRed: this;
268
+ readonly bgGreen: this;
269
+ readonly bgYellow: this;
270
+ readonly bgBlue: this;
271
+ readonly bgMagenta: this;
272
+ readonly bgCyan: this;
273
+ readonly bgWhite: this;
274
+
275
+ /*
276
+ Alias for `bgBlackBright`.
277
+ */
278
+ readonly bgGray: this;
279
+
280
+ /*
281
+ Alias for `bgBlackBright`.
282
+ */
283
+ readonly bgGrey: this;
284
+
285
+ readonly bgBlackBright: this;
286
+ readonly bgRedBright: this;
287
+ readonly bgGreenBright: this;
288
+ readonly bgYellowBright: this;
289
+ readonly bgBlueBright: this;
290
+ readonly bgMagentaBright: this;
291
+ readonly bgCyanBright: this;
292
+ readonly bgWhiteBright: this;
293
+ }
294
+
295
+ /**
296
+ Main Chalk object that allows to chain styles together.
297
+
298
+ Call the last one as a method with a string argument.
299
+
300
+ Order doesn't matter, and later styles take precedent in case of a conflict.
301
+
302
+ This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`.
303
+ */
304
+ declare const chalk: ChalkInstance;
305
+
306
+ export const supportsColor: ColorInfo;
307
+
308
+ export const chalkStderr: typeof chalk;
309
+ export const supportsColorStderr: typeof supportsColor;
310
+
311
+ export {
312
+ ColorInfo,
313
+ ColorSupport,
314
+ ColorSupportLevel,
315
+ // } from '#supports-color';
316
+ } from './vendor/supports-color/index.js';
317
+
318
+ export default chalk;
@@ -0,0 +1,55 @@
1
+ import {WriteStream} from 'node:tty';
2
+
3
+ export interface Options {
4
+ /**
5
+ Whether `process.argv` should be sniffed for `--color` and `--no-color` flags.
6
+
7
+ @default true
8
+ */
9
+ readonly sniffFlags?: boolean;
10
+ }
11
+
12
+ /**
13
+ Levels:
14
+ - `0` - All colors disabled.
15
+ - `1` - Basic 16 colors support.
16
+ - `2` - ANSI 256 colors support.
17
+ - `3` - Truecolor 16 million colors support.
18
+ */
19
+ export type ColorSupportLevel = 0 | 1 | 2 | 3;
20
+
21
+ /**
22
+ Detect whether the terminal supports color.
23
+ */
24
+ export interface ColorSupport {
25
+ /**
26
+ The color level.
27
+ */
28
+ level: ColorSupportLevel;
29
+
30
+ /**
31
+ Whether basic 16 colors are supported.
32
+ */
33
+ hasBasic: boolean;
34
+
35
+ /**
36
+ Whether ANSI 256 colors are supported.
37
+ */
38
+ has256: boolean;
39
+
40
+ /**
41
+ Whether Truecolor 16 million colors are supported.
42
+ */
43
+ has16m: boolean;
44
+ }
45
+
46
+ export type ColorInfo = ColorSupport | false;
47
+
48
+ export function createSupportsColor(stream: WriteStream, options?: Options): ColorInfo;
49
+
50
+ declare const supportsColor: {
51
+ stdout: ColorInfo;
52
+ stderr: ColorInfo;
53
+ };
54
+
55
+ export default supportsColor;
@@ -17,133 +17,133 @@ export type APPLE = [number, number, number];
17
17
  export type GRAY = [number];
18
18
 
19
19
  export namespace rgb {
20
- const channels: 3;
21
- const labels: 'rgb';
22
- function hsl(rgb: RGB): HSL;
23
- function hsl(...rgb: RGB): HSL;
24
- function hsv(rgb: RGB): HSV;
25
- function hsv(...rgb: RGB): HSV;
26
- function hwb(rgb: RGB): HWB;
27
- function hwb(...rgb: RGB): HWB;
28
- function cmyk(rgb: RGB): CMYK;
29
- function cmyk(...rgb: RGB): CMYK;
30
- function keyword(rgb: RGB): KEYWORD;
31
- function keyword(...rgb: RGB): KEYWORD;
32
- function xyz(rgb: RGB): XYZ;
33
- function xyz(...rgb: RGB): XYZ;
34
- function lab(rgb: RGB): LAB;
35
- function lab(...rgb: RGB): LAB;
36
- function ansi16(rgb: RGB): ANSI16;
37
- function ansi16(...rgb: RGB): ANSI16;
38
- function ansi256(rgb: RGB): ANSI256;
39
- function ansi256(...rgb: RGB): ANSI256;
40
- function hex(rgb: RGB): HEX;
41
- function hex(...rgb: RGB): HEX;
42
- function hcg(rgb: RGB): HCG;
43
- function hcg(...rgb: RGB): HCG;
44
- function apple(rgb: RGB): APPLE;
45
- function apple(...rgb: RGB): APPLE;
46
- function gray(rgb: RGB): GRAY;
47
- function gray(...rgb: RGB): GRAY;
20
+ const channels: 3;
21
+ const labels: 'rgb';
22
+ function hsl(rgb: RGB): HSL;
23
+ function hsl(...rgb: RGB): HSL;
24
+ function hsv(rgb: RGB): HSV;
25
+ function hsv(...rgb: RGB): HSV;
26
+ function hwb(rgb: RGB): HWB;
27
+ function hwb(...rgb: RGB): HWB;
28
+ function cmyk(rgb: RGB): CMYK;
29
+ function cmyk(...rgb: RGB): CMYK;
30
+ function keyword(rgb: RGB): KEYWORD;
31
+ function keyword(...rgb: RGB): KEYWORD;
32
+ function xyz(rgb: RGB): XYZ;
33
+ function xyz(...rgb: RGB): XYZ;
34
+ function lab(rgb: RGB): LAB;
35
+ function lab(...rgb: RGB): LAB;
36
+ function ansi16(rgb: RGB): ANSI16;
37
+ function ansi16(...rgb: RGB): ANSI16;
38
+ function ansi256(rgb: RGB): ANSI256;
39
+ function ansi256(...rgb: RGB): ANSI256;
40
+ function hex(rgb: RGB): HEX;
41
+ function hex(...rgb: RGB): HEX;
42
+ function hcg(rgb: RGB): HCG;
43
+ function hcg(...rgb: RGB): HCG;
44
+ function apple(rgb: RGB): APPLE;
45
+ function apple(...rgb: RGB): APPLE;
46
+ function gray(rgb: RGB): GRAY;
47
+ function gray(...rgb: RGB): GRAY;
48
48
  }
49
49
 
50
50
  export namespace hsl {
51
- const channels: 3;
52
- const labels: 'hsl';
53
- function rgb(hsl: HSL): RGB;
54
- function hsv(hsl: HSL): HSV;
55
- function hcg(hsl: HSL): HCG;
51
+ const channels: 3;
52
+ const labels: 'hsl';
53
+ function rgb(hsl: HSL): RGB;
54
+ function hsv(hsl: HSL): HSV;
55
+ function hcg(hsl: HSL): HCG;
56
56
  }
57
57
 
58
58
  export namespace hsv {
59
- const channels: 3;
60
- const labels: 'hsv';
61
- function rgb(hsv: HSV): RGB;
62
- function hsl(hsv: HSV): HSL;
63
- function ansi16(hsv: HSV): ANSI16;
64
- function hcg(hsv: HSV): HCG;
59
+ const channels: 3;
60
+ const labels: 'hsv';
61
+ function rgb(hsv: HSV): RGB;
62
+ function hsl(hsv: HSV): HSL;
63
+ function ansi16(hsv: HSV): ANSI16;
64
+ function hcg(hsv: HSV): HCG;
65
65
  }
66
66
 
67
67
  export namespace hwb {
68
- const channels: 3;
69
- const labels: 'hwb';
70
- function rgb(hwb: HWB): RGB;
71
- function hcg(hwb: HWB): HCG;
68
+ const channels: 3;
69
+ const labels: 'hwb';
70
+ function rgb(hwb: HWB): RGB;
71
+ function hcg(hwb: HWB): HCG;
72
72
  }
73
73
 
74
74
  export namespace cmyk {
75
- const channels: 4;
76
- const labels: 'cmyk';
77
- function rgb(cmyk: CMYK): RGB;
75
+ const channels: 4;
76
+ const labels: 'cmyk';
77
+ function rgb(cmyk: CMYK): RGB;
78
78
  }
79
79
 
80
80
  export namespace xyz {
81
- const channels: 3;
82
- const labels: 'xyz';
83
- function rgb(xyz: XYZ): RGB;
84
- function lab(xyz: XYZ): LAB;
81
+ const channels: 3;
82
+ const labels: 'xyz';
83
+ function rgb(xyz: XYZ): RGB;
84
+ function lab(xyz: XYZ): LAB;
85
85
  }
86
86
 
87
87
  export namespace lab {
88
- const channels: 3;
89
- const labels: 'lab';
90
- function xyz(lab: LAB): XYZ;
91
- function lch(lab: LAB): LCH;
88
+ const channels: 3;
89
+ const labels: 'lab';
90
+ function xyz(lab: LAB): XYZ;
91
+ function lch(lab: LAB): LCH;
92
92
  }
93
93
 
94
94
  export namespace lch {
95
- const channels: 3;
96
- const labels: 'lch';
97
- function lab(lch: LCH): LAB;
95
+ const channels: 3;
96
+ const labels: 'lch';
97
+ function lab(lch: LCH): LAB;
98
98
  }
99
99
 
100
100
  export namespace hex {
101
- const channels: 1;
102
- const labels: ['hex'];
103
- function rgb(hex: HEX): RGB;
101
+ const channels: 1;
102
+ const labels: ['hex'];
103
+ function rgb(hex: HEX): RGB;
104
104
  }
105
105
 
106
106
  export namespace keyword {
107
- const channels: 1;
108
- const labels: ['keyword'];
109
- function rgb(keyword: KEYWORD): RGB;
107
+ const channels: 1;
108
+ const labels: ['keyword'];
109
+ function rgb(keyword: KEYWORD): RGB;
110
110
  }
111
111
 
112
112
  export namespace ansi16 {
113
- const channels: 1;
114
- const labels: ['ansi16'];
115
- function rgb(ansi16: ANSI16): RGB;
113
+ const channels: 1;
114
+ const labels: ['ansi16'];
115
+ function rgb(ansi16: ANSI16): RGB;
116
116
  }
117
117
 
118
118
  export namespace ansi256 {
119
- const channels: 1;
120
- const labels: ['ansi256'];
121
- function rgb(ansi256: ANSI256): RGB;
119
+ const channels: 1;
120
+ const labels: ['ansi256'];
121
+ function rgb(ansi256: ANSI256): RGB;
122
122
  }
123
123
 
124
124
  export namespace hcg {
125
- const channels: 3;
126
- const labels: ['h', 'c', 'g'];
127
- function rgb(hcg: HCG): RGB;
128
- function hsv(hcg: HCG): HSV;
129
- function hsl(hcg: HCG): HSL;
130
- function hwb(hcg: HCG): HWB;
125
+ const channels: 3;
126
+ const labels: ['h', 'c', 'g'];
127
+ function rgb(hcg: HCG): RGB;
128
+ function hsv(hcg: HCG): HSV;
129
+ function hsl(hcg: HCG): HSL;
130
+ function hwb(hcg: HCG): HWB;
131
131
  }
132
132
 
133
133
  export namespace apple {
134
- const channels: 3;
135
- const labels: ['r16', 'g16', 'b16'];
136
- function rgb(apple: APPLE): RGB;
134
+ const channels: 3;
135
+ const labels: ['r16', 'g16', 'b16'];
136
+ function rgb(apple: APPLE): RGB;
137
137
  }
138
138
 
139
139
  export namespace gray {
140
- const channels: 1;
141
- const labels: ['gray'];
142
- function rgb(gray: GRAY): RGB;
143
- function hsl(gray: GRAY): HSL;
144
- function hsv(gray: GRAY): HSV;
145
- function hwb(gray: GRAY): HWB;
146
- function cmyk(gray: GRAY): CMYK;
147
- function lab(gray: GRAY): LAB;
148
- function hex(gray: GRAY): HEX;
140
+ const channels: 1;
141
+ const labels: ['gray'];
142
+ function rgb(gray: GRAY): RGB;
143
+ function hsl(gray: GRAY): HSL;
144
+ function hsv(gray: GRAY): HSV;
145
+ function hwb(gray: GRAY): HWB;
146
+ function cmyk(gray: GRAY): CMYK;
147
+ function lab(gray: GRAY): LAB;
148
+ function hex(gray: GRAY): HEX;
149
149
  }