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;
|
constructor: ChalkConstructor;
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
level: Level;
|
level: Level;
|
||||||
rgb(r: number, g: number, b: number): Chalk;
|
rgb(r: number, g: number, b: number): this;
|
||||||
hsl(h: number, s: number, l: number): Chalk;
|
hsl(h: number, s: number, l: number): this;
|
||||||
hsv(h: number, s: number, v: number): Chalk;
|
hsv(h: number, s: number, v: number): this;
|
||||||
hwb(h: number, w: number, b: number): Chalk;
|
hwb(h: number, w: number, b: number): this;
|
||||||
bgHex(color: string): Chalk;
|
bgHex(color: string): this;
|
||||||
bgKeyword(color: string): Chalk;
|
bgKeyword(color: string): this;
|
||||||
bgRgb(r: number, g: number, b: number): Chalk;
|
bgRgb(r: number, g: number, b: number): this;
|
||||||
bgHsl(h: number, s: number, l: number): Chalk;
|
bgHsl(h: number, s: number, l: number): this;
|
||||||
bgHsv(h: number, s: number, v: number): Chalk;
|
bgHsv(h: number, s: number, v: number): this;
|
||||||
bgHwb(h: number, w: number, b: number): Chalk;
|
bgHwb(h: number, w: number, b: number): this;
|
||||||
hex(color: string): Chalk;
|
hex(color: string): this;
|
||||||
keyword(color: string): Chalk;
|
keyword(color: string): this;
|
||||||
|
|
||||||
reset: Chalk;
|
reset: this;
|
||||||
bold: Chalk;
|
bold: this;
|
||||||
dim: Chalk;
|
dim: this;
|
||||||
italic: Chalk;
|
italic: this;
|
||||||
underline: Chalk;
|
underline: this;
|
||||||
inverse: Chalk;
|
inverse: this;
|
||||||
hidden: Chalk;
|
hidden: this;
|
||||||
strikethrough: Chalk;
|
strikethrough: this;
|
||||||
|
|
||||||
black: Chalk;
|
black: this;
|
||||||
red: Chalk;
|
red: this;
|
||||||
green: Chalk;
|
green: this;
|
||||||
yellow: Chalk;
|
yellow: this;
|
||||||
blue: Chalk;
|
blue: this;
|
||||||
magenta: Chalk;
|
magenta: this;
|
||||||
cyan: Chalk;
|
cyan: this;
|
||||||
white: Chalk;
|
white: this;
|
||||||
gray: Chalk;
|
gray: this;
|
||||||
grey: Chalk;
|
grey: this;
|
||||||
blackBright: Chalk;
|
blackBright: this;
|
||||||
redBright: Chalk;
|
redBright: this;
|
||||||
greenBright: Chalk;
|
greenBright: this;
|
||||||
yellowBright: Chalk;
|
yellowBright: this;
|
||||||
blueBright: Chalk;
|
blueBright: this;
|
||||||
magentaBright: Chalk;
|
magentaBright: this;
|
||||||
cyanBright: Chalk;
|
cyanBright: this;
|
||||||
whiteBright: Chalk;
|
whiteBright: this;
|
||||||
|
|
||||||
bgBlack: Chalk;
|
bgBlack: this;
|
||||||
bgRed: Chalk;
|
bgRed: this;
|
||||||
bgGreen: Chalk;
|
bgGreen: this;
|
||||||
bgYellow: Chalk;
|
bgYellow: this;
|
||||||
bgBlue: Chalk;
|
bgBlue: this;
|
||||||
bgMagenta: Chalk;
|
bgMagenta: this;
|
||||||
bgCyan: Chalk;
|
bgCyan: this;
|
||||||
bgWhite: Chalk;
|
bgWhite: this;
|
||||||
bgBlackBright: Chalk;
|
bgBlackBright: this;
|
||||||
bgRedBright: Chalk;
|
bgRedBright: this;
|
||||||
bgGreenBright: Chalk;
|
bgGreenBright: this;
|
||||||
bgYellowBright: Chalk;
|
bgYellowBright: this;
|
||||||
bgBlueBright: Chalk;
|
bgBlueBright: this;
|
||||||
bgMagentaBright: Chalk;
|
bgMagentaBright: this;
|
||||||
bgCyanBright: Chalk;
|
bgCyanBright: this;
|
||||||
bgWhiteBright: Chalk;
|
bgWhiteBright: this;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare const chalk: Chalk & { supportsColor: ColorSupport };
|
declare const chalk: Chalk & { supportsColor: ColorSupport };
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue