Update index.d.ts

This commit is contained in:
Sindre Sorhus 2019-08-22 00:54:12 +02:00 committed by GitHub
parent aefb21012d
commit 3d5418fafc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

22
index.d.ts vendored
View file

@ -21,8 +21,8 @@ declare const enum LevelEnum {
} }
/** /**
* Available foreground colors for use Available foreground colors.
*/ */
declare type ForegroundColor = declare type ForegroundColor =
| "black" | "black"
| "red" | "red"
@ -44,8 +44,8 @@ declare type ForegroundColor =
| "whiteBright"; | "whiteBright";
/** /**
* Available background colors for use Available background colors.
*/ */
declare type BackgroundColor = declare type BackgroundColor =
| "bgBlack" | "bgBlack"
| "bgRed" | "bgRed"
@ -67,13 +67,13 @@ declare type BackgroundColor =
| "bgWhiteBright"; | "bgWhiteBright";
/** /**
* Available colors for use Available colors.
*/ */
declare type Color = BackgroundColor | ForegroundColor; declare type Color = ForegroundColor | BackgroundColor;
/** /**
* Available modifiers for use Available modifiers.
*/ */
declare type Modifiers = declare type Modifiers =
| "reset" | "reset"
| "bold" | "bold"
@ -371,9 +371,9 @@ This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`.
declare const chalk: chalk.Chalk & chalk.ChalkFunction & { declare const chalk: chalk.Chalk & chalk.ChalkFunction & {
supportsColor: chalk.ColorSupport | false; supportsColor: chalk.ColorSupport | false;
Level: typeof LevelEnum; Level: typeof LevelEnum;
BackgroundColor: BackgroundColor;
ForegroundColor: ForegroundColor;
Color: Color; Color: Color;
ForegroundColor: ForegroundColor;
BackgroundColor: BackgroundColor;
Modifiers: Modifiers; Modifiers: Modifiers;
}; };