@@ -49,7 +49,7 @@ const store = new Vuex.Store({ ...options })
49
49
- type: ` { [key: string]: Function }`
50
50
51
51
Register getters on the store . The getter function receives the following arguments:
52
-
52
+
53
53
```
54
54
state, // will be module local state if defined in a module.
55
55
getters, // same as store.getters
@@ -160,18 +160,26 @@ const store = new Vuex.Store({ ...options })
160
160
161
161
### Component Binding Helpers
162
162
163
- - **` mapState (map: Array < string> | Object ): Object ` **
163
+ - **` mapState (namespace ?: string, map: Array < string> | Object ): Object ` **
164
164
165
165
Create component computed options that return the sub tree of the Vuex store. [Details](state.md#the-mapstate-helper)
166
166
167
- - **` mapGetters (map: Array < string> | Object ): Object ` **
167
+ The first argument can optionally be a namespace string. [Details](modules.md#binding-helpers-with-namespace)
168
+
169
+ - **` mapGetters (namespace?: string, map: Array < string> | Object ): Object ` **
168
170
169
171
Create component computed options that return the evaluated value of a getter. [Details](getters.md#the-mapgetters-helper)
170
172
171
- - **` mapActions (map: Array < string> | Object ): Object ` **
173
+ The first argument can optionally be a namespace string. [Details](modules.md#binding-helpers-with-namespace)
174
+
175
+ - **` mapActions (namespace?: string, map: Array < string> | Object ): Object ` **
172
176
173
177
Create component methods options that dispatch an action. [Details](actions.md#dispatching-actions-in-components)
174
178
175
- - **` mapMutations (map: Array < string> | Object ): Object ` **
179
+ The first argument can optionally be a namespace string. [Details](modules.md#binding-helpers-with-namespace)
180
+
181
+ - **` mapMutations (namespace?: string, map: Array < string> | Object ): Object ` **
176
182
177
183
Create component methods options that commit a mutation. [Details](mutations.md#commiting-mutations-in-components)
184
+
185
+ The first argument can optionally be a namespace string. [Details](modules.md#binding-helpers-with-namespace)
0 commit comments