修正大部分的编译错误。

This commit is contained in:
徐涛
2025-02-10 14:28:34 +08:00
parent 2144cd548a
commit 88e3d1f928
44 changed files with 429 additions and 381 deletions

View File

@@ -4,12 +4,12 @@ import { MaterialDesign3SchemeStorage } from './material-3-scheme';
import { QSchemeStorage } from './q-scheme';
import { SwatchSchemeStorage } from './swatch_scheme';
export type Option =
export type Option<T = string | number | null> =
| {
label: string;
value: string | number | null;
value: T;
}
| Record<'label' | 'value', string | number | null>;
| Record<'label' | 'value', T>;
export type HarmonyColor = {
color: string;