-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconcolor.d.ts
More file actions
32 lines (29 loc) 路 729 Bytes
/
Copy pathconcolor.d.ts
File metadata and controls
32 lines (29 loc) 路 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
type TagFunction = {
(text: string): string;
(strings: TemplateStringsArray, ...values: unknown[]): string;
};
interface Concolor {
b: TagFunction;
i: TagFunction;
u: TagFunction;
em: TagFunction;
error: TagFunction;
info: TagFunction;
warn: TagFunction;
debug: TagFunction;
success: TagFunction;
fail: TagFunction;
black: TagFunction;
red: TagFunction;
green: TagFunction;
yellow: TagFunction;
blue: TagFunction;
magenta: TagFunction;
cyan: TagFunction;
white: TagFunction;
}
export declare const concolor: Concolor & {
(strings: TemplateStringsArray, ...values: unknown[]): string;
(styles: string): TagFunction;
(theme: Record<string, string>): Record<string, TagFunction>;
};