From 87c05321881e69b706a6fc03943308ddffaf0872 Mon Sep 17 00:00:00 2001 From: Aj - Thomas Date: Mon, 2 May 2022 15:08:05 +0200 Subject: [PATCH] Reworked types --- tools/types.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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;