diff --git a/src/lib/entities.ts b/src/lib/entities.ts index 20a6f11..3440c60 100644 --- a/src/lib/entities.ts +++ b/src/lib/entities.ts @@ -148,6 +148,28 @@ export interface StatsTypeCurrencyChart { elements: StatsType[]; } +// {{{ Settings section + +export interface SettingsTypeFilter { + type_id: number; + filter_this: boolean; + // For UI + color: string; + comment: string; + name: string; +} + +export const SettingsTypes = { + type: "SettingsTypeFilter", +} as const; + +export type SettingsName = keyof typeof SettingsTypes; +export type SettingsType = + T extends "type" ? SettingsTypeFilter : + never; + +// }}} + export const EntityTypes = { card: "Card", type: "Type",