Files
Homarr/tools/types.ts

26 lines
529 B
TypeScript
Raw Normal View History

2022-05-02 15:08:05 +02:00
import { type } from "os";
2022-05-01 14:46:06 +02:00
export interface Settings {
searchUrl: string;
searchBar: boolean;
[key: string]: any;
}
2022-04-30 21:34:41 +02:00
export interface Config {
services: serviceItem[];
2022-05-01 14:46:06 +02:00
settings: Settings;
2022-04-30 21:39:59 +02:00
}
2022-05-01 14:46:06 +02:00
2022-05-02 15:08:05 +02:00
export const ServiceTypeList = [
'Other', 'Sonarr', 'Radarr', 'Lidarr', 'qBittorrent', 'Plex', 'Emby'
]
export type ServiceType = 'Other' | 'Sonarr' | 'Radarr' | 'Lidarr' | 'qBittorrent' | 'Plex' | 'Emby';
2022-05-01 14:46:06 +02:00
export interface serviceItem {
[x: string]: any;
name: string;
type: string;
url: string;
icon: string;
}