From c4721774a6a75593d1b9f8720f5edbab347422f4 Mon Sep 17 00:00:00 2001 From: Phillip Rak Date: Sat, 8 Jun 2024 14:10:36 -0700 Subject: [PATCH] Update return type of `useStore` Signed-off-by: Phillip Rak --- shell/composables/useStore.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/composables/useStore.ts b/shell/composables/useStore.ts index 64419c9091..be49bfd8f8 100644 --- a/shell/composables/useStore.ts +++ b/shell/composables/useStore.ts @@ -1,4 +1,5 @@ import { getCurrentInstance } from 'vue'; +import { Store } from 'vuex'; /** * useStore allows for accessing Vuex stores from within a setup function. This is a temporary measure for working with @@ -6,7 +7,7 @@ import { getCurrentInstance } from 'vue'; * * TODO: #9541 Remove for Vue 3 migration */ -export const useStore = ():unknown => { +export const useStore = ():Store => { const vm = getCurrentInstance(); if (!vm) throw new Error('useStore() must be called from setup()');