feat: make settings typed and store "12" and "24" over "12-hour" and "24-hour" internally
This commit is contained in:
parent
eb49450756
commit
195322f3b0
5 changed files with 32 additions and 11 deletions
9
types/settings.ts
Normal file
9
types/settings.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
export interface ClientSettings {
|
||||
selectedThemeId?: string, // the ID of the theme, not the URL, for example "dark"
|
||||
timeFormat?: TimeFormat
|
||||
}
|
||||
|
||||
export interface TimeFormat {
|
||||
index: number,
|
||||
format: "auto" | "12" | "24"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue