diff --git a/tools/types.ts b/tools/types.ts index b4e8b853f..15d2d69c2 100644 --- a/tools/types.ts +++ b/tools/types.ts @@ -1,3 +1,5 @@ +import { type } from "os"; + export interface Settings { searchUrl: string; searchBar: boolean; @@ -7,10 +9,12 @@ export interface Settings { export interface Config { services: serviceItem[]; settings: Settings; - [key: string]: any; } -export const ServiceTypes = ['Other', 'Sonarr', 'Radarr', 'Lidarr', 'qBittorrent', 'Plex', 'Emby']; +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;