Update index.d.ts

This commit is contained in:
Sindre Sorhus 2019-08-22 15:27:48 +02:00 committed by GitHub
parent 62ef5784b8
commit 5cb7939e86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

15
index.d.ts vendored
View file

@ -21,7 +21,9 @@ declare const enum LevelEnum {
}
/**
Available builtin foreground colors. Other colors are also available: https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support
Basic foreground colors.
[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support)
*/
declare type ForegroundColor =
| 'black'
@ -44,7 +46,9 @@ declare type ForegroundColor =
| 'whiteBright';
/**
Available builtin background colors. Other colors are also available: https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support
Basic background colors.
[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support)
*/
declare type BackgroundColor =
| 'bgBlack'
@ -67,13 +71,12 @@ declare type BackgroundColor =
| 'bgWhiteBright';
/**
Available colors.
Basic colors.
[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support)
*/
declare type Color = ForegroundColor | BackgroundColor;
/**
Available modifiers.
*/
declare type Modifiers =
| 'reset'
| 'bold'