Skip to content

Commit 7239724

Browse files
author
Danny Davidson
committed
actually remember what this lib does and get types correct
1 parent 748cda2 commit 7239724

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

build/lib/index.d.ts

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -14,53 +14,53 @@ export interface Color {
1414
disable(): void;
1515
setTheme(theme: any): void;
1616

17-
strip: Color;
18-
stripColors: Color;
17+
strip(str: string): Color;
18+
stripColors(str: string): Color;
1919

20-
black: Color;
21-
red: Color;
22-
green: Color;
23-
yellow: Color;
24-
blue: Color;
25-
magenta: Color;
26-
cyan: Color;
27-
white: Color;
28-
gray: Color;
20+
black(str: string): Color;
21+
red(str: string): Color;
22+
green(str: string): Color;
23+
yellow(str: string): Color;
24+
blue(str: string): Color;
25+
magenta(str: string): Color;
26+
cyan(str: string): Color;
27+
white(str: string): Color;
28+
gray(str: string): Color;
2929

30-
brightRed: Color;
31-
brightGreen: Color;
32-
brightYellow: Color;
33-
brightBlue: Color;
34-
brightMagenta: Color;
35-
brightCyan: Color;
36-
brightWhite: Color;
30+
brightRed(str: string): Color;
31+
brightGreen(str: string): Color;
32+
brightYellow(str: string): Color;
33+
brightBlue(str: string): Color;
34+
brightMagenta(str: string): Color;
35+
brightCyan(str: string): Color;
36+
brightWhite(str: string): Color;
3737

38-
bgBlack: Color;
39-
bgRed: Color;
40-
bgGreen: Color;
41-
bgYellow: Color;
42-
bgBlue: Color;
43-
bgMagenta: Color;
44-
bgCyan: Color;
45-
bgWhite: Color;
46-
bgGray: Color;
38+
bgBlack(str: string): Color;
39+
bgRed(str: string): Color;
40+
bgGreen(str: string): Color;
41+
bgYellow(str: string): Color;
42+
bgBlue(str: string): Color;
43+
bgMagenta(str: string): Color;
44+
bgCyan(str: string): Color;
45+
bgWhite(str: string): Color;
46+
bgGray(str: string): Color;
4747

48-
bgBrightRed: Color;
49-
bgBrightGreen: Color;
50-
bgBrightYellow: Color;
51-
bgBrightBlue: Color;
52-
bgBrightMagenta: Color;
53-
bgBrightCyan: Color;
54-
bgBrightWhite: Color;
48+
bgBrightRed(str: string): Color;
49+
bgBrightGreen(str: string): Color;
50+
bgBrightYellow(str: string): Color;
51+
bgBrightBlue(str: string): Color;
52+
bgBrightMagenta(str: string): Color;
53+
bgBrightCyan(str: string): Color;
54+
bgBrightWhite(str: string): Color;
5555

56-
reset: Color;
57-
bold: Color;
58-
dim: Color;
59-
italic: Color;
60-
underline: Color;
61-
inverse: Color;
62-
hidden: Color;
63-
strikethrough: Color;
56+
reset(str: string): Color;
57+
bold(str: string): Color;
58+
dim(str: string): Color;
59+
italic(str: string): Color;
60+
underline(str: string): Color;
61+
inverse(str: string): Color;
62+
hidden(str: string): Color;
63+
strikethrough(str: string): Color;
6464

6565
}
6666

0 commit comments

Comments
 (0)