chore(types): code style fixes
This commit is contained in:
parent
74a0ccf8b6
commit
98b42414b4
1 changed files with 60 additions and 60 deletions
120
types/index.d.ts
vendored
120
types/index.d.ts
vendored
|
|
@ -14,31 +14,31 @@ export interface ChalkOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Chalk {
|
export interface Chalk {
|
||||||
new (options: ChalkOptions): Chalk
|
new (options: ChalkOptions): Chalk;
|
||||||
(options: ChalkOptions): Chalk
|
(options: ChalkOptions): Chalk;
|
||||||
(...text: string[]): string
|
(...text: string[]): string;
|
||||||
(text: TemplateStringsArray, ...placeholders: string[]): string
|
(text: TemplateStringsArray, ...placeholders: string[]): string;
|
||||||
constructor: Chalk
|
constructor: Chalk;
|
||||||
enabled: boolean
|
enabled: boolean;
|
||||||
level: Level
|
level: Level;
|
||||||
supportsColor: {
|
supportsColor: {
|
||||||
level: Level,
|
level: Level;
|
||||||
hasBasic: boolean,
|
hasBasic: boolean;
|
||||||
has256: boolean,
|
has256: boolean;
|
||||||
has16m: boolean
|
has16m: boolean;
|
||||||
}
|
};
|
||||||
rgb: (r: number, g: number, b: number) => Chalk
|
rgb(r: number, g: number, b: number): Chalk;
|
||||||
hsl: (h: number, s: number, l: number) => Chalk
|
hsl(h: number, s: number, l: number): Chalk;
|
||||||
hsv: (h: number, s: number, v: number) => Chalk
|
hsv(h: number, s: number, v: number): Chalk;
|
||||||
hwb: (h: number, w: number, b: number) => Chalk
|
hwb(h: number, w: number, b: number): Chalk;
|
||||||
bgHex: (color: string) => Chalk;
|
bgHex(color: string): Chalk;
|
||||||
bgKeyword: (color: string) => Chalk
|
bgKeyword(color: string): Chalk;
|
||||||
bgRgb: (r: number, g: number, b: number) => Chalk
|
bgRgb(r: number, g: number, b: number): Chalk;
|
||||||
bgHsl: (h: number, s: number, l: number) => Chalk
|
bgHsl(h: number, s: number, l: number): Chalk;
|
||||||
bgHsv: (h: number, s: number, v: number) => Chalk
|
bgHsv(h: number, s: number, v: number): Chalk;
|
||||||
bgHwb: (h: number, w: number, b: number) => Chalk
|
bgHwb(h: number, w: number, b: number): Chalk;
|
||||||
hex: (color: string) => Chalk
|
hex(color: string): Chalk;
|
||||||
keyword: (color: string) => Chalk
|
keyword(color: string): Chalk;
|
||||||
|
|
||||||
reset: Chalk;
|
reset: Chalk;
|
||||||
bold: Chalk;
|
bold: Chalk;
|
||||||
|
|
@ -49,42 +49,42 @@ export interface Chalk {
|
||||||
hidden: Chalk;
|
hidden: Chalk;
|
||||||
strikethrough: Chalk;
|
strikethrough: Chalk;
|
||||||
|
|
||||||
black: Chalk
|
black: Chalk;
|
||||||
red: Chalk
|
red: Chalk;
|
||||||
green: Chalk
|
green: Chalk;
|
||||||
yellow: Chalk
|
yellow: Chalk;
|
||||||
blue: Chalk
|
blue: Chalk;
|
||||||
magenta: Chalk
|
magenta: Chalk;
|
||||||
cyan: Chalk
|
cyan: Chalk;
|
||||||
white: Chalk
|
white: Chalk;
|
||||||
gray: Chalk
|
gray: Chalk;
|
||||||
grey: Chalk
|
grey: Chalk;
|
||||||
blackBright: Chalk
|
blackBright: Chalk;
|
||||||
redBright: Chalk
|
redBright: Chalk;
|
||||||
greenBright: Chalk
|
greenBright: Chalk;
|
||||||
yellowBright: Chalk
|
yellowBright: Chalk;
|
||||||
blueBright: Chalk
|
blueBright: Chalk;
|
||||||
magentaBright: Chalk
|
magentaBright: Chalk;
|
||||||
cyanBright: Chalk
|
cyanBright: Chalk;
|
||||||
whiteBright: Chalk
|
whiteBright: Chalk;
|
||||||
|
|
||||||
bgBlack: Chalk
|
bgBlack: Chalk;
|
||||||
bgRed: Chalk
|
bgRed: Chalk;
|
||||||
bgGreen: Chalk
|
bgGreen: Chalk;
|
||||||
bgYellow: Chalk
|
bgYellow: Chalk;
|
||||||
bgBlue: Chalk
|
bgBlue: Chalk;
|
||||||
bgMagenta: Chalk
|
bgMagenta: Chalk;
|
||||||
bgCyan: Chalk
|
bgCyan: Chalk;
|
||||||
bgWhite: Chalk
|
bgWhite: Chalk;
|
||||||
bgBlackBright: Chalk
|
bgBlackBright: Chalk;
|
||||||
bgRedBright: Chalk
|
bgRedBright: Chalk;
|
||||||
bgGreenBright: Chalk
|
bgGreenBright: Chalk;
|
||||||
bgYellowBright: Chalk
|
bgYellowBright: Chalk;
|
||||||
bgBlueBright: Chalk
|
bgBlueBright: Chalk;
|
||||||
bgMagentaBright: Chalk
|
bgMagentaBright: Chalk;
|
||||||
bgCyanBright: Chalk
|
bgCyanBright: Chalk;
|
||||||
bgWhiteBright: Chalk
|
bgWhiteBright: Chalk;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare function chalk (): any
|
declare function chalk (): any;
|
||||||
export default chalk as Chalk
|
export default chalk as Chalk;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue