Skip to content

Commit 60dc0b8

Browse files
committed
docs(ja): fix a few expressions
1 parent dd3a273 commit 60dc0b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/ja/examples.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const axios = Axios.create({
159159

160160
// 例1. "axios"(デフォルト)のステータス処理方法での使用 (validStatus: 'axios')
161161

162-
// axiosのようにエラーを投げる(例:status >= 400、ネットワークエラー、インターセプターエラー)
162+
// axiosのようにエラーをスローする(例:status >= 400、ネットワークエラー、インターセプターエラー)
163163
const api = new OpenApiAxios<paths, "axios">(axios, { validStatus: "axios" });
164164

165165
// const api = new OpenApiAxios<paths>(axios) // 同じ結果になる
@@ -178,7 +178,7 @@ try {
178178

179179
// 例2. "fetch" ステータス処理方法での使用 (validStatus: 'fetch')
180180

181-
// ブラウザのfetch()のようにエラーを投げる(例:ネットワークエラー、インターセプターエラー)
181+
// ブラウザのfetch()のようにエラーをスローする(例:ネットワークエラー、インターセプターエラー)
182182
const fetchApi = new OpenApiAxios<paths, "fetch">(axios, {
183183
validStatus: "fetch",
184184
});
@@ -208,7 +208,7 @@ if (error) {
208208
if (typeof status === "number") {
209209
// status >= 400
210210
} else if (api.isAxiosError(error)) {
211-
// リクエスト失敗(例:ネットワークエラー
211+
// リクエスト失敗(例:ネットワークエラー)
212212
}
213213
throw error; // axios.interceptors のエラー
214214
}

docs/ja/openapi-fetch/api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const { data, error } = await client.PUT("/submit", {
183183

184184
::: tip
185185

186-
便宜上、 `openapi-fetch``body` パラメーターに値が指定されたリクエストに対して、`Content-Type` を自動的に `application/json` に設定します
186+
便宜上、`openapi-fetch``body` パラメーターに値が指定されたリクエストに対して、`Content-Type` `application/json` に自動で設定します
187187
`bodySerializer``FormData` のインスタンスを返す場合、`Content-Type` ヘッダーは省略され、ブラウザがメッセージの複数のパートを正しく区切るboundaryを含む `Content-Type` を自動的に設定します。
188188

189189
また、fetch オプションやクライアントのインスタンス化時に、`headers` オブジェクトを通じて `Content-Type` を手動で設定することもできます。

0 commit comments

Comments
 (0)