1- export interface CSPair { // eslint-disable-line @typescript-eslint/naming-convention
1+ export type CSPair = { // eslint-disable-line @typescript-eslint/naming-convention
22 /**
33 The ANSI terminal control sequence for starting this style.
44 */
@@ -8,9 +8,9 @@ export interface CSPair { // eslint-disable-line @typescript-eslint/naming-conve
88 The ANSI terminal control sequence for ending this style.
99 */
1010 readonly close : string ;
11- }
11+ } ;
1212
13- export interface ColorBase {
13+ export type ColorBase = {
1414 /**
1515 The ANSI terminal control sequence for ending this color.
1616 */
@@ -21,9 +21,9 @@ export interface ColorBase {
2121 ansi256 ( code : number ) : string ;
2222
2323 ansi16m ( red : number , green : number , blue : number ) : string ;
24- }
24+ } ;
2525
26- export interface Modifier {
26+ export type Modifier = {
2727 /**
2828 Resets the current color chain.
2929 */
@@ -70,9 +70,9 @@ export interface Modifier {
7070 Puts a horizontal line through the center of the text. (Not widely supported)
7171 */
7272 readonly strikethrough : CSPair ;
73- }
73+ } ;
7474
75- export interface ForegroundColor {
75+ export type ForegroundColor = {
7676 readonly black : CSPair ;
7777 readonly red : CSPair ;
7878 readonly green : CSPair ;
@@ -100,9 +100,9 @@ export interface ForegroundColor {
100100 readonly cyanBright : CSPair ;
101101 readonly magentaBright : CSPair ;
102102 readonly whiteBright : CSPair ;
103- }
103+ } ;
104104
105- export interface BackgroundColor {
105+ export type BackgroundColor = {
106106 readonly bgBlack : CSPair ;
107107 readonly bgRed : CSPair ;
108108 readonly bgGreen : CSPair ;
@@ -130,9 +130,9 @@ export interface BackgroundColor {
130130 readonly bgCyanBright : CSPair ;
131131 readonly bgMagentaBright : CSPair ;
132132 readonly bgWhiteBright : CSPair ;
133- }
133+ } ;
134134
135- export interface ConvertColor {
135+ export type ConvertColor = {
136136 /**
137137 Convert from the RGB color space to the ANSI 256 color space.
138138
@@ -178,7 +178,7 @@ export interface ConvertColor {
178178 @param hex - A hexadecimal string containing RGB data.
179179 */
180180 hexToAnsi ( hex : string ) : number ;
181- }
181+ } ;
182182
183183/**
184184Basic modifier names.
0 commit comments