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
|
|
@ -24,7 +24,7 @@ export type ColorSupport = {|
|
|||
export interface Chalk {
|
||||
(...text: string[]): string,
|
||||
(text: TemplateStringsArray, ...placeholders: mixed[]): string,
|
||||
constructor(options?: Options): Chalk,
|
||||
Instance(options?: Options): Chalk,
|
||||
enabled: boolean,
|
||||
level: Level,
|
||||
rgb(red: number, green: number, blue: number): Chalk,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue