ClickerMonkey / vuex-typescript-interface

Adding magical type safety to Vuex without additional code
MIT License
44 stars 4 forks source link

Update types for mapXXX methods to work with spread operator. #14

Closed anteprimorac closed 4 years ago

anteprimorac commented 4 years ago

This worked as expected:

  methods: {
    ...mapActions({ initStoreGroup: 'initStoreGroup' }),
  }

but this failed with message Spread types may only be created from object types:

  methods: {
    ...mapActions(['initStoreGroup']),
  }

Commit fixes the problems.