From 3295b3a96acbb6dc6b5fc0ce4dbe1d90afa9bbc5 Mon Sep 17 00:00:00 2001 From: Adam Shiervani Date: Mon, 8 Sep 2025 11:36:56 +0200 Subject: [PATCH] fix(ui): specify JsonRpcResponse type --- ui/src/routes/devices.$id.settings.video.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/routes/devices.$id.settings.video.tsx b/ui/src/routes/devices.$id.settings.video.tsx index dd56bd76..ea1a101a 100644 --- a/ui/src/routes/devices.$id.settings.video.tsx +++ b/ui/src/routes/devices.$id.settings.video.tsx @@ -65,12 +65,12 @@ export default function SettingsVideoRoute() { useEffect(() => { setEdidLoading(true); - send("getStreamQualityFactor", {}, resp => { + send("getStreamQualityFactor", {}, (resp: JsonRpcResponse) => { if ("error" in resp) return; setStreamQuality(String(resp.result)); }); - send("getEDID", {}, resp => { + send("getEDID", {}, (resp: JsonRpcResponse) => { setEdidLoading(false); if ("error" in resp) { notifications.error(`Failed to get EDID: ${resp.error.data || "Unknown error"}`); @@ -117,7 +117,7 @@ export default function SettingsVideoRoute() { const handleEDIDChange = (newEdid: string) => { setEdidLoading(true); - send("setEDID", { edid: newEdid }, resp => { + send("setEDID", { edid: newEdid }, (resp: JsonRpcResponse) => { setEdidLoading(false); if ("error" in resp) { notifications.error(`Failed to set EDID: ${resp.error.data || "Unknown error"}`);