Skip to content

Commit

Permalink
Meta tweak (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
Richienb committed Oct 24, 2021
1 parent 9521742 commit 3761e45
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions source/index.d.ts
Expand Up @@ -166,6 +166,13 @@ export interface ChalkInstance extends ChalkFunction {

/**
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;

Expand All @@ -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.
@example
```
import chalk from 'chalk';
chalk.ansi256(201);
```
*/
ansi256: (index: number) => this;

/**
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;

Expand All @@ -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.
@example
```
import chalk from 'chalk';
chalk.bgAnsi256(201);
```
*/
bgAnsi256: (index: number) => this;

Expand Down

0 comments on commit 3761e45

Please sign in to comment.