Files
Homarr/tools/types.ts
2022-05-12 23:05:54 +02:00

39 lines
573 B
TypeScript

export interface Settings {
searchUrl: string;
searchBar: boolean;
enabledModules: string[];
[key: string]: any;
}
export interface Config {
name: string;
services: serviceItem[];
settings: Settings;
}
export const ServiceTypeList = [
'Other',
'Sonarr',
'Radarr',
'Lidarr',
'qBittorrent',
'Plex',
'Emby',
];
export type ServiceType =
| 'Other'
| 'Sonarr'
| 'Radarr'
| 'Lidarr'
| 'qBittorrent'
| 'Plex'
| 'Emby';
export interface serviceItem {
[x: string]: any;
name: string;
type: string;
url: string;
icon: string;
}