refactor(types): chain this instead of Chalk in Chalk interface
This commit is contained in:
parent
37a4d594f1
commit
d9b67a9aad
1 changed files with 54 additions and 54 deletions
108
types/index.d.ts
vendored
108
types/index.d.ts
vendored
|
|
@ -31,63 +31,63 @@ export interface Chalk {
|
|||
constructor: ChalkConstructor;
|
||||
enabled: boolean;
|
||||
level: Level;
|
||||
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;
|
||||
rgb(r: number, g: number, b: number): this;
|
||||
hsl(h: number, s: number, l: number): this;
|
||||
hsv(h: number, s: number, v: number): this;
|
||||
hwb(h: number, w: number, b: number): this;
|
||||
bgHex(color: string): this;
|
||||
bgKeyword(color: string): this;
|
||||
bgRgb(r: number, g: number, b: number): this;
|
||||
bgHsl(h: number, s: number, l: number): this;
|
||||
bgHsv(h: number, s: number, v: number): this;
|
||||
bgHwb(h: number, w: number, b: number): this;
|
||||
hex(color: string): this;
|
||||
keyword(color: string): this;
|
||||
|
||||
reset: Chalk;
|
||||
bold: Chalk;
|
||||
dim: Chalk;
|
||||
italic: Chalk;
|
||||
underline: Chalk;
|
||||
inverse: Chalk;
|
||||
hidden: Chalk;
|
||||
strikethrough: Chalk;
|
||||
reset: this;
|
||||
bold: this;
|
||||
dim: this;
|
||||
italic: this;
|
||||
underline: this;
|
||||
inverse: this;
|
||||
hidden: this;
|
||||
strikethrough: this;
|
||||
|
||||
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: 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;
|
||||
|
||||
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: 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;
|
||||
}
|
||||
|
||||
declare const chalk: Chalk & { supportsColor: ColorSupport };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue