Update type definitions

This commit is contained in:
Tom Sherman 2019-01-26 21:50:48 +00:00
parent 438f32698e
commit 08f9e5f3e3
2 changed files with 3 additions and 3 deletions

4
index.d.ts vendored
View file

@ -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.

View file

@ -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,