vue-rest-hooks
Version:
typescript restfull-api reactive @vue/composition-api
15 lines (13 loc) • 465 B
text/typescript
import { mapStateConvert } from "./mapState";
import { mapGettersConvert } from "./mapGetters";
import { mapMutationsConvert } from "./mapMutation";
import { mapActionsConvert } from "./mapActions";
import { Store } from "vuex";
export function convertStore(store: Store<any>) {
return {
mapState: mapStateConvert(store),
mapGetters: mapGettersConvert(store),
mapMutations: mapMutationsConvert(store),
mapActions: mapActionsConvert(store)
};
}