From 1b43adf04689fd937d89d3adbc6eceb5c75532ee Mon Sep 17 00:00:00 2001 From: Lachie Underhill Date: Thu, 12 Sep 2024 09:44:09 +1000 Subject: [PATCH] chore(webui): fix linting errors --- webui/src/client/components/downloads/TheDownloadBar.vue | 3 --- webui/src/client/main.ts | 1 - webui/src/server/routes/api/post/saveSettings.ts | 3 ++- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/webui/src/client/components/downloads/TheDownloadBar.vue b/webui/src/client/components/downloads/TheDownloadBar.vue index d3c7835a..91808f2a 100644 --- a/webui/src/client/components/downloads/TheDownloadBar.vue +++ b/webui/src/client/components/downloads/TheDownloadBar.vue @@ -280,10 +280,7 @@ function cancelQueue() { } function openDownloadsFolder() { - // if (this.clientMode) { - // @ts-expect-error window.api.send("openDownloadsFolder"); - // } } function handleDrag(event) { diff --git a/webui/src/client/main.ts b/webui/src/client/main.ts index a2bb5ea1..3c5bcf06 100644 --- a/webui/src/client/main.ts +++ b/webui/src/client/main.ts @@ -133,7 +133,6 @@ function initClient() { } document.addEventListener("DOMContentLoaded", startApp); -// @ts-expect-error if (window.api) { initClient(); } diff --git a/webui/src/server/routes/api/post/saveSettings.ts b/webui/src/server/routes/api/post/saveSettings.ts index 1e5a6980..51db3287 100644 --- a/webui/src/server/routes/api/post/saveSettings.ts +++ b/webui/src/server/routes/api/post/saveSettings.ts @@ -1,4 +1,5 @@ -import type { ApiHandler, Settings, SpotifySettings } from "../../../types.js"; +import type { ApiHandler } from "@/types.js"; +import type { Settings, SpotifySettings } from "deemix"; const path = "/saveSettings";