migrate color / icon select to typescript

This commit is contained in:
MaysWind
2025-01-05 13:21:05 +08:00
parent 061ea6aab4
commit da06fe4a7b
6 changed files with 97 additions and 109 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import type { TypeAndName } from './base.ts';
export type ColorValue = string;
export interface ColorInfo {
export interface ColorInfo extends Record<string, unknown> {
readonly color: ColorValue;
}
+2 -2
View File
@@ -1,10 +1,10 @@
export type LineAwesomeIconClassName = string;
export interface IconInfo {
export interface IconInfo extends Record<string, unknown> {
readonly icon: LineAwesomeIconClassName;
}
export interface IconInfoWithId {
export interface IconInfoWithId extends IconInfo {
readonly id: string;
readonly icon: LineAwesomeIconClassName;
}