Require Node.js 10

This commit is contained in:
Sindre Sorhus 2020-04-02 15:56:21 +08:00
parent f0f4638a92
commit 61999a4e77
8 changed files with 32 additions and 26 deletions

10
index.d.ts vendored
View file

@ -91,12 +91,10 @@ declare namespace chalk {
level?: Level;
}
interface Instance {
/**
Return a new Chalk instance.
*/
new (options?: Options): Chalk;
}
/**
Return a new Chalk instance.
*/
type Instance = new (options?: Options) => Chalk;
/**
Detect whether the terminal supports color.