Export Color type

This commit is contained in:
Alcedo Nathaniel De Guzman Jr 2019-03-24 08:49:14 +08:00
parent 7b9211be50
commit bcf8ff9fe9
3 changed files with 82 additions and 1 deletions

View file

@ -21,6 +21,45 @@ export type ColorSupport = {|
has16m: boolean
|};
/**
* Available colors for use
*/
export type Color =
"black"
| "red"
| "green"
| "yellow"
| "blue"
| "magenta"
| "cyan"
| "white"
| "gray"
| "grey"
| "blackBright"
| "redBright"
| "greenBright"
| "yellowBright"
| "blueBright"
| "magentaBright"
| "cyanBright"
| "whiteBright"
| "bgBlack"
| "bgRed"
| "bgGreen"
| "bgYellow"
| "bgBlue"
| "bgMagenta"
| "bgCyan"
| "bgWhite"
| "bgBlackBright"
| "bgRedBright"
| "bgGreenBright"
| "bgYellowBright"
| "bgBlueBright"
| "bgMagentaBright"
| "bgCyanBright"
| "bgWhiteBright";
export interface Chalk {
(...text: string[]): string,
(text: TemplateStringsArray, ...placeholders: mixed[]): string,