small example in index.d.ts

This commit is contained in:
Toon Baeyens 2020-05-07 09:47:18 +02:00
parent e5ea8df1e5
commit 60db67b521

7
index.d.ts vendored
View file

@ -147,6 +147,13 @@ declare namespace chalk {
DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%}
`);
```
@example
```
import chalk = require('chalk');
log(chalk.red.bgBlack`2 + 3 = {bold ${2 + 3}}`)
```
*/
(text: TemplateStringsArray, ...placeholders: unknown[]): string;