Add ansi256 and bgAnsi256 to TypeScript declarations (#368)

This commit is contained in:
Mark Pedrotti 2019-10-08 05:02:34 -04:00 committed by Sindre Sorhus
parent eef8c8c191
commit fb8e85ab87
3 changed files with 14 additions and 2 deletions

10
index.d.ts vendored
View file

@ -213,6 +213,11 @@ declare namespace chalk {
*/
hwb(hue: number, whiteness: number, blackness: number): Chalk;
/**
Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color.
*/
ansi256(index: number): Chalk;
/**
Use HEX value to set background color.
@ -261,6 +266,11 @@ declare namespace chalk {
*/
bgHwb(hue: number, whiteness: number, blackness: number): Chalk;
/**
Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color.
*/
bgAnsi256(index: number): Chalk;
/**
Modifier: Resets the current color chain.
*/