Skip to content

Commit f698a26

Browse files
committed
docs(ja): align style of api method description to other locales
1 parent 19e6337 commit f698a26

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

Diff for: docs/ja/api/README.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -147,35 +147,35 @@ const store = new Vuex.Store({ ...options })
147147

148148
### commit
149149

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)`
152152

153153
ミューテーションをコミットします。`options` は[名前空間付きモジュール](../guide/modules.md#名前空間)で root なミューテーションにコミットできる `root: true` を持つことできます。[詳細](../guide/mutations.md)
154154

155155
### dispatch
156156

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>`
159159

160160
アクションをディスパッチします。`options` は[名前空間付きモジュール](../guide/modules.md#名前空間)で root なアクションにディスパッチできる `root: true` を持つことできます。 すべてのトリガーされたアクションハンドラを解決するPromiseを返します。[詳細](../guide/actions.md)
161161

162162
### replaceState
163163

164-
- **`replaceState(state: Object)`**
164+
- `replaceState(state: Object)`
165165

166166
ストアのルートステートを置き換えます。これは、ステートのハイドレーションやタイムトラベルのためだけに利用すべきです。
167167

168168
### watch
169169

170-
- **`watch(fn: Function, callback: Function, options?: Object): Function`**
170+
- `watch(fn: Function, callback: Function, options?: Object): Function`
171171

172172
`fn`が返す値をリアクティブに監視し、値が変わった時にコールバックを呼びます。`fn`は最初の引数としてストアのステートを、2番目の引数としてゲッターを受け取ります。 [Vue の`vm.$watch`メソッド](https://jp.vuejs.org/v2/api/#watch)と同じオプションをオプションのオブジェクトとして受け付けます。
173173

174174
監視を止める場合は、返された unwatch 関数を呼び出します。
175175

176176
### subscribe
177177

178-
- **`subscribe(handler: Function): Function`**
178+
- `subscribe(handler: Function): Function`
179179

180180
ストアへのミューテーションを購読します。`handler` は、全てのミューテーションの後に呼ばれ、引数として、ミューテーション ディスクリプタとミューテーション後の状態を受け取ります。
181181

@@ -192,7 +192,7 @@ const store = new Vuex.Store({ ...options })
192192

193193
### subscribeAction
194194

195-
- **`subscribeAction(handler: Function)`**
195+
- `subscribeAction(handler: Function)`
196196

197197
> 2.5.0 で新規追加
198198

@@ -226,15 +226,15 @@ const store = new Vuex.Store({ ...options })
226226

227227
### registerModule
228228

229-
- **`registerModule(path: string | Array<string>, module: Module, options?: Object)`**
229+
- `registerModule(path: string | Array<string>, module: Module, options?: Object)`
230230

231231
動的なモジュールを登録します。[詳細](../guide/modules.md#dynamic-module-registration)
232232

233233
`options` は前の状態を保存する `preserveState: true` を持つことができます。サーバサイドレンダリングに役立ちます。
234234

235235
### unregisterModule
236236

237-
- **`unregisterModule(path: string | Array<string>)`**
237+
- `unregisterModule(path: string | Array<string>)`
238238

239239
動的なモジュールを解除します。[詳細](../guide/modules.md#dynamic-module-registration)
240240

@@ -246,15 +246,15 @@ const store = new Vuex.Store({ ...options })
246246

247247
### hotUpdate
248248

249-
- **`hotUpdate(newOptions: Object)`**
249+
- `hotUpdate(newOptions: Object)`
250250

251251
新しいアクションとミューテーションをホットスワップします。[詳細](../guide/hot-reload.md)
252252

253253
## コンポーネントをバインドするヘルパー
254254

255255
### mapState
256256

257-
- **`mapState(namespace?: string, map: Array<string> | Object<string | function>): Object`**
257+
- `mapState(namespace?: string, map: Array<string> | Object<string | function>): Object`
258258

259259
ストアのサブツリーを返すコンポーネントの computed オプションを作成します。[詳細](../guide/state.md#the-mapstate-helper)
260260

@@ -264,15 +264,15 @@ const store = new Vuex.Store({ ...options })
264264

265265
### mapGetters
266266

267-
- **`mapGetters(namespace?: string, map: Array<string> | Object<string>): Object`**
267+
- `mapGetters(namespace?: string, map: Array<string> | Object<string>): Object`
268268

269269
ゲッターの評価後の値を返すコンポーネントの computed オプションを作成します。[詳細](../guide/getters.md#the-mapgetters-helper)
270270

271271
1引数は、オプションで名前空間文字列にすることができます。[詳細](../guide/modules.md#binding-helpers-with-namespace)
272272

273273
### mapActions
274274

275-
- **`mapActions(namespace?: string, map: Array<string> | Object<string | function>): Object`**
275+
- `mapActions(namespace?: string, map: Array<string> | Object<string | function>): Object`
276276

277277
アクションをディスパッチするコンポーネントの methods オプションを作成します。[詳細](../guide/actions.md#dispatching-actions-in-components)
278278

@@ -282,7 +282,7 @@ const store = new Vuex.Store({ ...options })
282282

283283
### mapMutations
284284

285-
- **`mapMutations(namespace?: string, map: Array<string> | Object<string | function>): Object`**
285+
- `mapMutations(namespace?: string, map: Array<string> | Object<string | function>): Object`
286286

287287
ミューテーションをコミットするコンポーネントの methods オプションを作成します。[詳細](../guide/mutations.md#commiting-mutations-in-components)
288288

@@ -292,6 +292,6 @@ const store = new Vuex.Store({ ...options })
292292

293293
### createNamespaceHelpers
294294

295-
- **`createNamespacedHelpers(namespace: string): Object`**
295+
- `createNamespacedHelpers(namespace: string): Object`
296296

297297
名前空間付けられたコンポーネントバインディングのヘルパーを作成します。返されるオブジェクトは指定された名前空間にバインドされた `mapState``mapGetters``mapActions` そして `mapMutations` が含まれます。[詳細はこちら](../guide/modules.md#binding-helpers-with-namespace)

0 commit comments

Comments
 (0)