I am converting a JavaScript project to TypeScript. However, I get a type error when trying to use Vue Vuex.
import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);

It seems that the problem is that vuex does not provide type definitions like vuejs?
Because I also need to install
"allowSyntheticDefaultImports": true
in my tsconfig.json.
How can I solve this problem and force Vue.use to accept Vuex as the correct type?
source
share