small example in index.d.ts
This commit is contained in:
parent
e5ea8df1e5
commit
60db67b521
1 changed files with 7 additions and 0 deletions
7
index.d.ts
vendored
7
index.d.ts
vendored
|
|
@ -147,6 +147,13 @@ declare namespace chalk {
|
||||||
DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%}
|
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;
|
(text: TemplateStringsArray, ...placeholders: unknown[]): string;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue