From 98b42414b428a1cdddabac4bb889e1330734df52 Mon Sep 17 00:00:00 2001 From: calebboyd Date: Sun, 15 Oct 2017 12:34:49 -0500 Subject: [PATCH] chore(types): code style fixes --- types/index.d.ts | 120 +++++++++++++++++++++++------------------------ 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 667b143..6d2c710 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -14,31 +14,31 @@ export interface ChalkOptions { } export interface Chalk { - new (options: ChalkOptions): Chalk - (options: ChalkOptions): Chalk - (...text: string[]): string - (text: TemplateStringsArray, ...placeholders: string[]): string - constructor: Chalk - enabled: boolean - level: Level + new (options: ChalkOptions): Chalk; + (options: ChalkOptions): Chalk; + (...text: string[]): string; + (text: TemplateStringsArray, ...placeholders: string[]): string; + constructor: Chalk; + enabled: boolean; + level: Level; supportsColor: { - level: Level, - hasBasic: boolean, - has256: boolean, - has16m: boolean - } - rgb: (r: number, g: number, b: number) => Chalk - hsl: (h: number, s: number, l: number) => Chalk - hsv: (h: number, s: number, v: number) => Chalk - hwb: (h: number, w: number, b: number) => Chalk - bgHex: (color: string) => Chalk; - bgKeyword: (color: string) => Chalk - bgRgb: (r: number, g: number, b: number) => Chalk - bgHsl: (h: number, s: number, l: number) => Chalk - bgHsv: (h: number, s: number, v: number) => Chalk - bgHwb: (h: number, w: number, b: number) => Chalk - hex: (color: string) => Chalk - keyword: (color: string) => Chalk + level: Level; + hasBasic: boolean; + has256: boolean; + has16m: boolean; + }; + rgb(r: number, g: number, b: number): Chalk; + hsl(h: number, s: number, l: number): Chalk; + hsv(h: number, s: number, v: number): Chalk; + hwb(h: number, w: number, b: number): Chalk; + bgHex(color: string): Chalk; + bgKeyword(color: string): Chalk; + bgRgb(r: number, g: number, b: number): Chalk; + bgHsl(h: number, s: number, l: number): Chalk; + bgHsv(h: number, s: number, v: number): Chalk; + bgHwb(h: number, w: number, b: number): Chalk; + hex(color: string): Chalk; + keyword(color: string): Chalk; reset: Chalk; bold: Chalk; @@ -49,42 +49,42 @@ export interface Chalk { hidden: Chalk; strikethrough: Chalk; - black: Chalk - red: Chalk - green: Chalk - yellow: Chalk - blue: Chalk - magenta: Chalk - cyan: Chalk - white: Chalk - gray: Chalk - grey: Chalk - blackBright: Chalk - redBright: Chalk - greenBright: Chalk - yellowBright: Chalk - blueBright: Chalk - magentaBright: Chalk - cyanBright: Chalk - whiteBright: Chalk + black: Chalk; + red: Chalk; + green: Chalk; + yellow: Chalk; + blue: Chalk; + magenta: Chalk; + cyan: Chalk; + white: Chalk; + gray: Chalk; + grey: Chalk; + blackBright: Chalk; + redBright: Chalk; + greenBright: Chalk; + yellowBright: Chalk; + blueBright: Chalk; + magentaBright: Chalk; + cyanBright: Chalk; + whiteBright: Chalk; - bgBlack: Chalk - bgRed: Chalk - bgGreen: Chalk - bgYellow: Chalk - bgBlue: Chalk - bgMagenta: Chalk - bgCyan: Chalk - bgWhite: Chalk - bgBlackBright: Chalk - bgRedBright: Chalk - bgGreenBright: Chalk - bgYellowBright: Chalk - bgBlueBright: Chalk - bgMagentaBright: Chalk - bgCyanBright: Chalk - bgWhiteBright: Chalk + bgBlack: Chalk; + bgRed: Chalk; + bgGreen: Chalk; + bgYellow: Chalk; + bgBlue: Chalk; + bgMagenta: Chalk; + bgCyan: Chalk; + bgWhite: Chalk; + bgBlackBright: Chalk; + bgRedBright: Chalk; + bgGreenBright: Chalk; + bgYellowBright: Chalk; + bgBlueBright: Chalk; + bgMagentaBright: Chalk; + bgCyanBright: Chalk; + bgWhiteBright: Chalk; } -declare function chalk (): any -export default chalk as Chalk +declare function chalk (): any; +export default chalk as Chalk;