From 83dcb3f80f0d795cab588f84300d2ce56a33ade0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Fri, 7 Feb 2025 17:29:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4Swatch=20Scheme=E7=9A=84?= =?UTF-8?q?=E9=83=A8=E5=88=86=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/swatch_scheme.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/swatch_scheme.ts b/src/swatch_scheme.ts index fce9e49..788cf03 100644 --- a/src/swatch_scheme.ts +++ b/src/swatch_scheme.ts @@ -5,9 +5,16 @@ export type SwatchScheme = { dark: Record; }; +export type QSwatchEntry = { + [P in keyof SwatchEntry]: SwatchEntry[P]; +}; +export type QSwatchSchemeSetting = { + [P in keyof SwatchSchemeSetting]: SwatchSchemeSetting[P]; +}; + export type SwatchSchemeSource = { - colors: SwatchEntry[]; - setting: SwatchSchemeSetting | null; + colors: QSwatchEntry[]; + setting: QSwatchSchemeSetting | null; }; export type SwatchSchemeStorage = {