@@ -147,35 +147,35 @@ const store = new Vuex.Store({ ...options })
147
147
148
148
### commit
149
149
150
- - ** ` commit(type: string, payload?: any, options?: Object)` **
151
- - ** ` commit(mutation: Object, options?: Object)` **
150
+ - ` commit(type: string, payload?: any, options?: Object)`
151
+ - ` commit(mutation: Object, options?: Object)`
152
152
153
153
ミューテーションをコミットします。` options` は[名前空間付きモジュール](../ guide/ modules .md #名前空間)で root なミューテーションにコミットできる ` root: true` を持つことできます。[詳細](../ guide/ mutations .md )
154
154
155
155
### dispatch
156
156
157
- - ** ` dispatch(type: string, payload?: any, options?: Object): Promise<any>` **
158
- - ** ` dispatch(action: Object, options?: Object): Promise<any>` **
157
+ - ` dispatch(type: string, payload?: any, options?: Object): Promise<any>`
158
+ - ` dispatch(action: Object, options?: Object): Promise<any>`
159
159
160
160
アクションをディスパッチします。` options` は[名前空間付きモジュール](../ guide/ modules .md #名前空間)で root なアクションにディスパッチできる ` root: true` を持つことできます。 すべてのトリガーされたアクションハンドラを解決するPromise を返します。[詳細](../ guide/ actions .md )
161
161
162
162
### replaceState
163
163
164
- - ** ` replaceState(state: Object)` **
164
+ - ` replaceState(state: Object)`
165
165
166
166
ストアのルートステートを置き換えます。これは、ステートのハイドレーションやタイムトラベルのためだけに利用すべきです。
167
167
168
168
### watch
169
169
170
- - ** ` watch(fn: Function, callback: Function, options?: Object): Function` **
170
+ - ` watch(fn: Function, callback: Function, options?: Object): Function`
171
171
172
172
` fn` が返す値をリアクティブに監視し、値が変わった時にコールバックを呼びます。` fn` は最初の引数としてストアのステートを、2 番目の引数としてゲッターを受け取ります。 [Vue の` vm.$watch` メソッド](https: // jp.vuejs.org/v2/api/#watch)と同じオプションをオプションのオブジェクトとして受け付けます。
173
173
174
174
監視を止める場合は、返された unwatch 関数を呼び出します。
175
175
176
176
### subscribe
177
177
178
- - ** ` subscribe(handler: Function): Function` **
178
+ - ` subscribe(handler: Function): Function`
179
179
180
180
ストアへのミューテーションを購読します。` handler` は、全てのミューテーションの後に呼ばれ、引数として、ミューテーション ディスクリプタとミューテーション後の状態を受け取ります。
181
181
@@ -192,7 +192,7 @@ const store = new Vuex.Store({ ...options })
192
192
193
193
### subscribeAction
194
194
195
- - ** ` subscribeAction(handler: Function)` **
195
+ - ` subscribeAction(handler: Function)`
196
196
197
197
> 2.5 .0 で新規追加
198
198
@@ -226,15 +226,15 @@ const store = new Vuex.Store({ ...options })
226
226
227
227
### registerModule
228
228
229
- - ** ` registerModule(path: string | Array<string>, module: Module, options?: Object)` **
229
+ - ` registerModule(path: string | Array<string>, module: Module, options?: Object)`
230
230
231
231
動的なモジュールを登録します。[詳細](../ guide/ modules .md #dynamic- module - registration)
232
232
233
233
` options` は前の状態を保存する ` preserveState: true` を持つことができます。サーバサイドレンダリングに役立ちます。
234
234
235
235
### unregisterModule
236
236
237
- - ** ` unregisterModule(path: string | Array<string>)` **
237
+ - ` unregisterModule(path: string | Array<string>)`
238
238
239
239
動的なモジュールを解除します。[詳細](../ guide/ modules .md #dynamic- module - registration)
240
240
@@ -246,15 +246,15 @@ const store = new Vuex.Store({ ...options })
246
246
247
247
### hotUpdate
248
248
249
- - ** ` hotUpdate(newOptions: Object)` **
249
+ - ` hotUpdate(newOptions: Object)`
250
250
251
251
新しいアクションとミューテーションをホットスワップします。[詳細](../ guide/ hot- reload .md )
252
252
253
253
## コンポーネントをバインドするヘルパー
254
254
255
255
### mapState
256
256
257
- - ** ` mapState(namespace?: string, map: Array<string> | Object<string | function>): Object` **
257
+ - ` mapState(namespace?: string, map: Array<string> | Object<string | function>): Object`
258
258
259
259
ストアのサブツリーを返すコンポーネントの computed オプションを作成します。[詳細](../ guide/ state .md #the- mapstate- helper)
260
260
@@ -264,15 +264,15 @@ const store = new Vuex.Store({ ...options })
264
264
265
265
### mapGetters
266
266
267
- - ** ` mapGetters(namespace?: string, map: Array<string> | Object<string>): Object` **
267
+ - ` mapGetters(namespace?: string, map: Array<string> | Object<string>): Object`
268
268
269
269
ゲッターの評価後の値を返すコンポーネントの computed オプションを作成します。[詳細](../ guide/ getters .md #the- mapgetters- helper)
270
270
271
271
第1 引数は、オプションで名前空間文字列にすることができます。[詳細](../ guide/ modules .md #binding- helpers- with - namespace)
272
272
273
273
### mapActions
274
274
275
- - ** ` mapActions(namespace?: string, map: Array<string> | Object<string | function>): Object` **
275
+ - ` mapActions(namespace?: string, map: Array<string> | Object<string | function>): Object`
276
276
277
277
アクションをディスパッチするコンポーネントの methods オプションを作成します。[詳細](../ guide/ actions .md #dispatching- actions- in - components)
278
278
@@ -282,7 +282,7 @@ const store = new Vuex.Store({ ...options })
282
282
283
283
### mapMutations
284
284
285
- - ** ` mapMutations(namespace?: string, map: Array<string> | Object<string | function>): Object` **
285
+ - ` mapMutations(namespace?: string, map: Array<string> | Object<string | function>): Object`
286
286
287
287
ミューテーションをコミットするコンポーネントの methods オプションを作成します。[詳細](../ guide/ mutations .md #commiting- mutations- in - components)
288
288
@@ -292,6 +292,6 @@ const store = new Vuex.Store({ ...options })
292
292
293
293
### createNamespaceHelpers
294
294
295
- - ** ` createNamespacedHelpers(namespace: string): Object` **
295
+ - ` createNamespacedHelpers(namespace: string): Object`
296
296
297
297
名前空間付けられたコンポーネントバインディングのヘルパーを作成します。返されるオブジェクトは指定された名前空間にバインドされた ` mapState` 、` mapGetters` 、` mapActions` そして ` mapMutations` が含まれます。[詳細はこちら](../ guide/ modules .md #binding- helpers- with - namespace)
0 commit comments