From e43ec91d250bc53c1ee92833673939ab730ca437 Mon Sep 17 00:00:00 2001 From: calebboyd Date: Mon, 23 Oct 2017 21:25:14 -0500 Subject: [PATCH] fix: make style properties readonly --- types/index.d.ts | 84 ++++++++++++++++++++++++------------------------ 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index ca8185e..e0e973c 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -44,50 +44,50 @@ export interface Chalk { hex(color: string): this; keyword(color: string): this; - reset: this; - bold: this; - dim: this; - italic: this; - underline: this; - inverse: this; - hidden: this; - strikethrough: this; + readonly reset: this; + readonly bold: this; + readonly dim: this; + readonly italic: this; + readonly underline: this; + readonly inverse: this; + readonly hidden: this; + readonly strikethrough: this; - black: this; - red: this; - green: this; - yellow: this; - blue: this; - magenta: this; - cyan: this; - white: this; - gray: this; - grey: this; - blackBright: this; - redBright: this; - greenBright: this; - yellowBright: this; - blueBright: this; - magentaBright: this; - cyanBright: this; - whiteBright: this; + readonly black: this; + readonly red: this; + readonly green: this; + readonly yellow: this; + readonly blue: this; + readonly magenta: this; + readonly cyan: this; + readonly white: this; + readonly gray: this; + readonly grey: this; + readonly blackBright: this; + readonly redBright: this; + readonly greenBright: this; + readonly yellowBright: this; + readonly blueBright: this; + readonly magentaBright: this; + readonly cyanBright: this; + readonly whiteBright: this; - bgBlack: this; - bgRed: this; - bgGreen: this; - bgYellow: this; - bgBlue: this; - bgMagenta: this; - bgCyan: this; - bgWhite: this; - bgBlackBright: this; - bgRedBright: this; - bgGreenBright: this; - bgYellowBright: this; - bgBlueBright: this; - bgMagentaBright: this; - bgCyanBright: this; - bgWhiteBright: this; + readonly bgBlack: this; + readonly bgRed: this; + readonly bgGreen: this; + readonly bgYellow: this; + readonly bgBlue: this; + readonly bgMagenta: this; + readonly bgCyan: this; + readonly bgWhite: this; + readonly bgBlackBright: this; + readonly bgRedBright: this; + readonly bgGreenBright: this; + readonly bgYellowBright: this; + readonly bgBlueBright: this; + readonly bgMagentaBright: this; + readonly bgCyanBright: this; + readonly bgWhiteBright: this; } declare const chalk: Chalk & { supportsColor: ColorSupport };