@@ -196,29 +196,35 @@ const store = new Vuex.Store({ ...options })
196
196
197
197
### Component Binding Helpers
198
198
199
- - **` mapState (namespace?: string, map: Array < string> | Object ): Object ` **
199
+ - **` mapState (namespace?: string, map: Array < string> | Object < string | function > ): Object`**
200
200
201
201
Create component computed options that return the sub tree of the Vuex store. [Details](state.md#the-mapstate-helper)
202
202
203
203
The first argument can optionally be a namespace string. [Details](modules.md#binding-helpers-with-namespace)
204
+
205
+ The Second object argument's members can be a function. `function(state: any)`
204
206
205
- - **` mapGetters (namespace?: string, map: Array < string> | Object ): Object ` **
207
+ - **`mapGetters(namespace?: string, map: Array<string> | Object<string> ): Object`**
206
208
207
209
Create component computed options that return the evaluated value of a getter. [Details](getters.md#the-mapgetters-helper)
208
210
209
211
The first argument can optionally be a namespace string. [Details](modules.md#binding-helpers-with-namespace)
210
212
211
- - **` mapActions (namespace?: string, map: Array < string> | Object ): Object ` **
213
+ - **`mapActions(namespace?: string, map: Array<string> | Object<string | function> ): Object`**
212
214
213
215
Create component methods options that dispatch an action. [Details](actions.md#dispatching-actions-in-components)
214
216
215
217
The first argument can optionally be a namespace string. [Details](modules.md#binding-helpers-with-namespace)
218
+
219
+ The Second object argument's members can be a function. `function(dispatch: function, ...args: any[])`
216
220
217
- - **` mapMutations (namespace?: string, map: Array < string> | Object ): Object ` **
221
+ - **`mapMutations(namespace?: string, map: Array<string> | Object<string | function> ): Object`**
218
222
219
223
Create component methods options that commit a mutation. [Details](mutations.md#committing-mutations-in-components)
220
224
221
225
The first argument can optionally be a namespace string. [Details](modules.md#binding-helpers-with-namespace)
226
+
227
+ The Second object argument's members can be a function. `function(commit: function, ...args: any[])`
222
228
223
229
- **`createNamespacedHelpers(namespace: string): Object`**
224
230
0 commit comments