From a1bd16e551135d959d52ad53dac067b52c3a20be Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Sun, 27 Sep 2020 11:45:30 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=88=20Colors=20type=20added?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/types.ts | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index d75da8c3..22813cf6 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -18,14 +18,16 @@ interface Frames { }; } -interface ColorSchemes { - [name: string]: { - base: string; - outline: string; - watch?: { - background: string; - }; +type Colors = { + base: string; + outline: string; + watch?: { + background: string; }; +}; + +interface ThemeColors { + [name: string]: Colors; } interface PixelDiffRate { @@ -33,9 +35,4 @@ interface PixelDiffRate { rate: number; }; } - -interface KeyColors { - [name: string]: string; -} - -export { Config, Frames, ColorSchemes, PathConfig, PixelDiffRate, KeyColors }; +export { Config, Frames, Colors, ThemeColors, PathConfig, PixelDiffRate };