Update type definitions
This commit is contained in:
parent
438f32698e
commit
08f9e5f3e3
2 changed files with 3 additions and 3 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.
|
||||
|
|
|
|||
|
|
@ -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