From deedf35bf0dcdc8c8d72cc62a2249d5a0b55dc3d Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Thu, 24 Oct 2024 04:02:07 +0530 Subject: [PATCH] fix: type errors in tab service --- packages/hoppscotch-common/src/services/tab/tab.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/hoppscotch-common/src/services/tab/tab.ts b/packages/hoppscotch-common/src/services/tab/tab.ts index cf3699040..53da2a626 100644 --- a/packages/hoppscotch-common/src/services/tab/tab.ts +++ b/packages/hoppscotch-common/src/services/tab/tab.ts @@ -20,7 +20,10 @@ export abstract class TabService extends Service implements TabServiceInterface { - protected tabMap = reactive(new Map>()) + protected tabMap = reactive(new Map>()) as Map< + string, + HoppTab + > // TODO: The implicit cast is necessary as the reactive unwraps the inner types, creating weird type errors, this needs to be refactored and removed protected tabOrdering = ref(["test"]) public currentTabID = refWithControl("test", {