Update index.d.ts

This commit is contained in:
Richie Bendall 2021-04-21 23:14:05 +12:00 committed by GitHub
parent d97dd528de
commit 78dd67b6ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

1
index.d.ts vendored
View file

@ -217,6 +217,7 @@ export interface ChalkInstance extends ChalkFunction {
/**
Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set background color.
30 <= code && code < 38 || 90 <= code && code < 98
For example, 31 for red, 91 for redBright.
Use the foreground code, not the background code (for example, not 41, nor 101).