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()');