fix: make style properties readonly

This commit is contained in:
calebboyd 2017-10-23 21:25:14 -05:00
parent d9b67a9aad
commit e43ec91d25

84
types/index.d.ts vendored
View file

@ -44,50 +44,50 @@ export interface Chalk {
hex(color: string): this; hex(color: string): this;
keyword(color: string): this; keyword(color: string): this;
reset: this; readonly reset: this;
bold: this; readonly bold: this;
dim: this; readonly dim: this;
italic: this; readonly italic: this;
underline: this; readonly underline: this;
inverse: this; readonly inverse: this;
hidden: this; readonly hidden: this;
strikethrough: this; readonly strikethrough: this;
black: this; readonly black: this;
red: this; readonly red: this;
green: this; readonly green: this;
yellow: this; readonly yellow: this;
blue: this; readonly blue: this;
magenta: this; readonly magenta: this;
cyan: this; readonly cyan: this;
white: this; readonly white: this;
gray: this; readonly gray: this;
grey: this; readonly grey: this;
blackBright: this; readonly blackBright: this;
redBright: this; readonly redBright: this;
greenBright: this; readonly greenBright: this;
yellowBright: this; readonly yellowBright: this;
blueBright: this; readonly blueBright: this;
magentaBright: this; readonly magentaBright: this;
cyanBright: this; readonly cyanBright: this;
whiteBright: this; readonly whiteBright: this;
bgBlack: this; readonly bgBlack: this;
bgRed: this; readonly bgRed: this;
bgGreen: this; readonly bgGreen: this;
bgYellow: this; readonly bgYellow: this;
bgBlue: this; readonly bgBlue: this;
bgMagenta: this; readonly bgMagenta: this;
bgCyan: this; readonly bgCyan: this;
bgWhite: this; readonly bgWhite: this;
bgBlackBright: this; readonly bgBlackBright: this;
bgRedBright: this; readonly bgRedBright: this;
bgGreenBright: this; readonly bgGreenBright: this;
bgYellowBright: this; readonly bgYellowBright: this;
bgBlueBright: this; readonly bgBlueBright: this;
bgMagentaBright: this; readonly bgMagentaBright: this;
bgCyanBright: this; readonly bgCyanBright: this;
bgWhiteBright: this; readonly bgWhiteBright: this;
} }
declare const chalk: Chalk & { supportsColor: ColorSupport }; declare const chalk: Chalk & { supportsColor: ColorSupport };