调整Swatch Scheme的部分类型定义。

This commit is contained in:
徐涛 2025-02-07 17:29:41 +08:00
parent b8018e323d
commit 83dcb3f80f

View File

@ -5,9 +5,16 @@ export type SwatchScheme = {
dark: Record<string, string[]>; dark: Record<string, string[]>;
}; };
export type QSwatchEntry = {
[P in keyof SwatchEntry]: SwatchEntry[P];
};
export type QSwatchSchemeSetting = {
[P in keyof SwatchSchemeSetting]: SwatchSchemeSetting[P];
};
export type SwatchSchemeSource = { export type SwatchSchemeSource = {
colors: SwatchEntry[]; colors: QSwatchEntry[];
setting: SwatchSchemeSetting | null; setting: QSwatchSchemeSetting | null;
}; };
export type SwatchSchemeStorage = { export type SwatchSchemeStorage = {