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 =
| "black"
| "red"
@ -44,8 +44,8 @@ declare type ForegroundColor =
| "whiteBright";
/**
* Available background colors for use
*/
Available background colors.
*/
declare type BackgroundColor =
| "bgBlack"
| "bgRed"
@ -67,13 +67,13 @@ declare type BackgroundColor =
| "bgWhiteBright";
/**
* Available colors for use
*/
declare type Color = BackgroundColor | ForegroundColor;
Available colors.
*/
declare type Color = ForegroundColor | BackgroundColor;
/**
* Available modifiers for use
*/
Available modifiers.
*/
declare type Modifiers =
| "reset"
| "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 & {
supportsColor: chalk.ColorSupport | false;
Level: typeof LevelEnum;
BackgroundColor: BackgroundColor;
ForegroundColor: ForegroundColor;
Color: Color;
ForegroundColor: ForegroundColor;
BackgroundColor: BackgroundColor;
Modifiers: Modifiers;
};