0👍
✅
So after looking closely at the example given in the vuex-typescript readme, I noticed that I was passing the wrong namespace when calling the function getStoreAccessors
.
Using dispaVuex
instead of Test
like this fixed the problem:
const {read} = getStoreAccessors<DispatchState, RootState>("dispaVuex");
Source:stackexchange.com