feat(projects): 将主题配置持久化
This commit is contained in:
9
src/typings/api/user-preference.d.ts
vendored
Normal file
9
src/typings/api/user-preference.d.ts
vendored
Normal 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>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user