Files
Homarr/src/types/config.ts
2022-12-24 17:18:16 +09:00

24 lines
607 B
TypeScript

import { CategoryType } from './category';
import { WrapperType } from './wrapper';
import { ConfigAppType, AppType } from './app';
import { SettingsType } from './settings';
import { IWidget } from '../widgets/widgets';
export interface ConfigType {
schemaVersion: number;
configProperties: ConfigPropertiesType;
categories: CategoryType[];
wrappers: WrapperType[];
apps: AppType[];
widgets: IWidget<string, any>[];
settings: SettingsType;
}
export type BackendConfigType = Omit<ConfigType, 'apps'> & {
apps: ConfigAppType[];
};
export interface ConfigPropertiesType {
name: string;
}