vuex-typescript-interface
vuex-typescript-interface copied to clipboard
Update types for mapXXX methods to work with spread operator.
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.