From 7cc721caacb43e3c350664a7d1d5e6fc7cf13fa0 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Sat, 27 Apr 2019 21:29:17 +0200 Subject: [PATCH] Remove superfluous exports --- index.d.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index 56c030d..c7d4a54 100644 --- a/index.d.ts +++ b/index.d.ts @@ -23,7 +23,7 @@ declare const enum LevelEnum { declare namespace chalk { type Level = LevelEnum; - export interface Options { + interface Options { /** Enable or disable Chalk. @@ -38,7 +38,7 @@ declare namespace chalk { level?: Level; } - export interface Instance { + interface Instance { /** Return a new Chalk instance. */ @@ -48,7 +48,7 @@ declare namespace chalk { /** Detect whether the terminal supports color. */ - export interface ColorSupport { + interface ColorSupport { /** The color level used by Chalk. */ @@ -70,7 +70,7 @@ declare namespace chalk { has16m: boolean; } - export interface Chalk { + interface Chalk { (...text: unknown[]): string; (text: TemplateStringsArray, ...placeholders: unknown[]): string; @@ -279,6 +279,9 @@ Call the last one as a method with a string argument. Order doesn't matter, and later styles take precedent in case of a conflict. This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`. */ -declare const chalk: chalk.Chalk & {supportsColor: chalk.ColorSupport, Level: typeof LevelEnum}; +declare const chalk: chalk.Chalk & { + supportsColor: chalk.ColorSupport; + Level: typeof LevelEnum; +}; export = chalk;