pr feedback

This commit is contained in:
Simen Bekkhus 2019-08-22 11:54:10 +02:00
parent 3d5418fafc
commit fb2e1240b1
No known key found for this signature in database
GPG key ID: 92B92EBAD80DE3CE

94
index.d.ts vendored
View file

@ -21,50 +21,50 @@ declare const enum LevelEnum {
} }
/** /**
Available foreground colors. Available builtin foreground colors. Other colors are also available: https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support
*/ */
declare type ForegroundColor = declare type ForegroundColor =
| "black" | 'black'
| "red" | 'red'
| "green" | 'green'
| "yellow" | 'yellow'
| "blue" | 'blue'
| "magenta" | 'magenta'
| "cyan" | 'cyan'
| "white" | 'white'
| "gray" | 'gray'
| "grey" | 'grey'
| "blackBright" | 'blackBright'
| "redBright" | 'redBright'
| "greenBright" | 'greenBright'
| "yellowBright" | 'yellowBright'
| "blueBright" | 'blueBright'
| "magentaBright" | 'magentaBright'
| "cyanBright" | 'cyanBright'
| "whiteBright"; | 'whiteBright';
/** /**
Available background colors. Available builtin background colors. Other colors are also available: https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support
*/ */
declare type BackgroundColor = declare type BackgroundColor =
| "bgBlack" | 'bgBlack'
| "bgRed" | 'bgRed'
| "bgGreen" | 'bgGreen'
| "bgYellow" | 'bgYellow'
| "bgBlue" | 'bgBlue'
| "bgMagenta" | 'bgMagenta'
| "bgCyan" | 'bgCyan'
| "bgWhite" | 'bgWhite'
| "bgGray" | 'bgGray'
| "bgGrey" | 'bgGrey'
| "bgBlackBright" | 'bgBlackBright'
| "bgRedBright" | 'bgRedBright'
| "bgGreenBright" | 'bgGreenBright'
| "bgYellowBright" | 'bgYellowBright'
| "bgBlueBright" | 'bgBlueBright'
| "bgMagentaBright" | 'bgMagentaBright'
| "bgCyanBright" | 'bgCyanBright'
| "bgWhiteBright"; | 'bgWhiteBright';
/** /**
Available colors. Available colors.
@ -75,15 +75,15 @@ declare type Color = ForegroundColor | BackgroundColor;
Available modifiers. Available modifiers.
*/ */
declare type Modifiers = declare type Modifiers =
| "reset" | 'reset'
| "bold" | 'bold'
| "dim" | 'dim'
| "italic" | 'italic'
| "underline" | 'underline'
| "inverse" | 'inverse'
| "hidden" | 'hidden'
| "strikethrough" | 'strikethrough'
| "visible"; | 'visible';
declare namespace chalk { declare namespace chalk {
type Level = LevelEnum; type Level = LevelEnum;