Deprecate chalk.constructor() in favor of new chalk.Instance() (#322)
This commit is contained in:
parent
60959e05cf
commit
de2f4cd606
11 changed files with 110 additions and 88 deletions
4
index.d.ts
vendored
4
index.d.ts
vendored
|
|
@ -35,7 +35,7 @@ export interface Options {
|
|||
level?: Level;
|
||||
}
|
||||
|
||||
export interface Constructor {
|
||||
export interface Instance {
|
||||
/**
|
||||
* Return a new Chalk instance.
|
||||
*/
|
||||
|
|
@ -75,7 +75,7 @@ export interface Chalk {
|
|||
/**
|
||||
* Return a new Chalk instance.
|
||||
*/
|
||||
constructor: Constructor;
|
||||
Instance: Instance;
|
||||
|
||||
/**
|
||||
* Enable or disable Chalk.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue