import Vue = require("vue"); import { mapState, mapGetters, mapActions, mapMutations } from "../index"; new Vue({ computed: Object.assign({}, mapState(["a"]), mapState('foo', ["a"]), mapState({ b: "b" }), mapState('foo', { b: "b" }), mapState({ c: (state: any, getters: any) => state.c + getters.c }), mapState('foo', { c: (state: any, getters: any) => state.c + getters.c }), mapGetters(["d"]), mapGetters('foo', ["d"]), mapGetters({ e: "e" }), mapGetters('foo', { e: "e" }), { otherComputed () { return "f"; } } ), methods: Object.assign({}, mapActions(["g"]), mapActions({ h: "h" }), mapActions('foo', ["g"]), mapActions('foo', { h: "h" }), mapMutations(["i"]), mapMutations({ j: "j" }), mapMutations('foo', ["i"]), mapMutations('foo', { j: "j" }), { otherMethod () {} } ) });