vuex-typescript-interface icon indicating copy to clipboard operation
vuex-typescript-interface copied to clipboard

Update types for mapXXX methods to work with spread operator.

Open zlorf opened this issue 4 years ago • 0 comments

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.

zlorf avatar Apr 19 '20 14:04 zlorf