feat(projects): 将主题配置持久化

This commit is contained in:
2026-04-02 20:42:20 +08:00
2 changed files with 38 additions and 0 deletions

9
src/typings/api/user-preference.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
declare namespace Api {
namespace UserPreference {
type ThemeSettingsValue<T> = {
[K in keyof T]?: T[K] extends Record<string, unknown> ? ThemeSettingsValue<T[K]> : T[K];
};
type ThemeSettings = ThemeSettingsValue<App.Theme.ThemeSetting>;
}
}