Meta tweak (#520)

This commit is contained in:
Richie Bendall 2021-10-25 08:07:02 +13:00 committed by GitHub
parent 95217429be
commit 3761e455a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

28
source/index.d.ts vendored
View file

@ -166,6 +166,13 @@ export interface ChalkInstance extends ChalkFunction {
/** /**
Use RGB values to set text color. Use RGB values to set text color.
@example
```
import chalk from 'chalk';
chalk.rgb(222, 173, 237);
```
*/ */
rgb: (red: number, green: number, blue: number) => this; rgb: (red: number, green: number, blue: number) => this;
@ -185,11 +192,25 @@ export interface ChalkInstance extends ChalkFunction {
/** /**
Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color. Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color.
@example
```
import chalk from 'chalk';
chalk.ansi256(201);
```
*/ */
ansi256: (index: number) => this; ansi256: (index: number) => this;
/** /**
Use RGB values to set background color. Use RGB values to set background color.
@example
```
import chalk from 'chalk';
chalk.bgRgb(222, 173, 237);
```
*/ */
bgRgb: (red: number, green: number, blue: number) => this; bgRgb: (red: number, green: number, blue: number) => this;
@ -209,6 +230,13 @@ export interface ChalkInstance extends ChalkFunction {
/** /**
Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color. Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color.
@example
```
import chalk from 'chalk';
chalk.bgAnsi256(201);
```
*/ */
bgAnsi256: (index: number) => this; bgAnsi256: (index: number) => this;