Skip to content

Commit 6eb82df

Browse files
author
Danny Davidson
committed
get support level features back into type
1 parent 4a218d1 commit 6eb82df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build/lib/index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ interface Color {
1919
disable(): void;
2020

2121
setTheme(theme: any): void;
22+
supportsColor(): ColorSupportLevel;
2223

2324
// Main methods
2425
bold: Color;
@@ -80,3 +81,10 @@ interface Color {
8081
random: Color;
8182
zebra: Color;
8283
}
84+
85+
type ColorSupportLevel = {
86+
level: number;
87+
hasBasic: boolean;
88+
has256: boolean;
89+
has16m: boolean;
90+
};

0 commit comments

Comments
 (0)