feat(settings): improve typing
This commit is contained in:
17
app/utils/settings.ts
Normal file
17
app/utils/settings.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export const SETTINGS_MENUS = ["options", "clock", "user", "touchScreen"] as const;
|
||||
|
||||
export const SETTINGS_SUB_MENUS = [
|
||||
"optionsLanguage",
|
||||
"optionsGbaMode",
|
||||
"optionsStartUp",
|
||||
"clockAlarm",
|
||||
"clockTime",
|
||||
"clockDate",
|
||||
"userBirthday",
|
||||
"userName",
|
||||
"userMessage",
|
||||
"userColor",
|
||||
] as const;
|
||||
|
||||
export type SettingsMenu = (typeof SETTINGS_MENUS)[number];
|
||||
export type SettingsSubMenu = (typeof SETTINGS_SUB_MENUS)[number];
|
||||
Reference in New Issue
Block a user