Skip to content

Commit 7f79b00

Browse files
authored
Merge branch 'main' into renovate/tanstack-query-monorepo
2 parents 255d5d0 + 56bb981 commit 7f79b00

File tree

25 files changed

+1713
-2323
lines changed

25 files changed

+1713
-2323
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Ultra-fast fetching for TypeScript generated automatically from your OpenAPI sch
1818

1919
<p align="center">
2020
<a href="https://zuplo.link/openapi-ts-gh"><img width="288" height="120" alt="Zuplo" src="./docs/public/assets/zuplo.svg"></a>
21-
<a href="https://www.speakeasy.com/editor?utm_source=pow_openapi_ts" target="_blank"><img width="288" height="120" src="./docs/public/assets/speakeasy.svg" /></a>
21+
<a href="https://www.speakeasy.com/editor?utm_source=pow_openapi_ts" target="_blank"><img width="288" height="120" src="./docs/public/assets/speakeasy.png" /></a>
2222
</p>
2323

2424
### 🥈 Silver Sponsors

docs/ja/openapi-fetch/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ See [swr-openapi](/swr-openapi/)
2222

2323
## Svelte / SvelteKit
2424

25-
[SvelteKit](https://kit.svelte.dev) の自動型推論機能は、クライアントサイドでのデータ取得や[ページデータ](https://kit.svelte.dev/docs/load#page-data)の取得において、openapi-fetchの型を簡単に活用できます。また、追加のライブラリを必要とせずに動作します。SvelteKitは、ロード関数内で[カスタムフェッチ](https://kit.svelte.dev/docs/load#making-fetch-requests)を使用することを推奨しており、これは[フェッチオプション](/ja/openapi-fetch/api#fetch-オプション)で実現できます。
25+
[SvelteKit](https://svelte.dev/docs/kit) の自動型推論機能は、クライアントサイドでのデータ取得や[ページデータ](https://svelte.dev/docs/kit/load#Page-data)の取得において、openapi-fetchの型を簡単に活用できます。また、追加のライブラリを必要とせずに動作します。SvelteKitは、ロード関数内で[カスタムフェッチ](https://svelte.dev/docs/kit/load#Making-fetch-requests)を使用することを推奨しており、これは[フェッチオプション](/ja/openapi-fetch/api#fetch-オプション)で実現できます。
2626

2727
_注: SvelteKitを使用しない場合でも、`src/routes/+page.svelte` 内のルート例は、SvelteKitの機能を使用しておらず、どのようなセットアップにも適用可能です。_
2828

docs/openapi-fetch/examples.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ See [swr-openapi](/swr-openapi/)
2222

2323
## Svelte / SvelteKit
2424

25-
[SvelteKit](https://kit.svelte.dev)’s automatic type inference can easily pick up openapi-fetch’s types in both clientside fetching and [Page Data](https://kit.svelte.dev/docs/load#page-data) fetching. And it doesn’t need any additional libraries to work. SvelteKit also advises to use their [custom fetch](https://kit.svelte.dev/docs/load#making-fetch-requests) in load functions. This can be achieved with [fetch options](/openapi-fetch/api#fetch-options).
25+
[SvelteKit](https://svelte.dev/docs/kit)’s automatic type inference can easily pick up openapi-fetch’s types in both clientside fetching and [Page Data](https://svelte.dev/docs/kit/load#Page-data) fetching. And it doesn’t need any additional libraries to work. SvelteKit also advises to use their [custom fetch](https://svelte.dev/docs/kit/load#Making-fetch-requests) in load functions. This can be achieved with [fetch options](/openapi-fetch/api#fetch-options).
2626

2727
_Note: if you’re using Svelte without SvelteKit, the root example in `src/routes/+page.svelte` doesn’t use any SvelteKit features and is generally-applicable to any setup._
2828

@@ -34,6 +34,12 @@ _Note: if you’re using Svelte without SvelteKit, the root example in `src/rout
3434

3535
[View a code example in GitHub](https://github.com/openapi-ts/openapi-typescript/tree/main/packages/openapi-fetch/examples/vue-3)
3636

37+
## Nuxt 3
38+
39+
[Nuxt 3](https://nuxtjs.org/) is a popular SSR framework for Vue 3. By combining Nuxt's built-in [useAsyncData](https://nuxt.com/docs/api/composables/use-async-data) composable with openapi-fetch, you can easily implement type-safe API communication with server-side rendering.
40+
41+
[View a code example in GitHub](https://github.com/HasutoSasaki/nuxt3-openapi-typescript-example)
42+
3743
---
3844

3945
Additional examples are always welcome! Please [open a PR](https://github.com/openapi-ts/openapi-typescript/pulls) with your examples.

docs/openapi-fetch/middleware-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ By default, `openapi-fetch` will **NOT** arbitrarily clone requests/responses fo
175175
<!-- prettier-ignore -->
176176
```ts
177177
const myMiddleware: Middleware = {
178-
onResponse({ response }) {
178+
async onResponse({ response }) {
179179
const data = await response.json(); // [!code --]
180180
const data = await response.clone().json(); // [!code ++]
181181
return undefined;

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"devDependencies": {
1212
"@shikijs/vitepress-twoslash": "^3.3.0",
1313
"openapi-metadata": "workspace:*",
14-
"vite": "^6.3.4",
15-
"vitepress": "^1.6.3"
14+
"vite": "^7.1.1",
15+
"vitepress": "^1.6.4"
1616
}
1717
}

docs/public/assets/speakeasy.png

116 KB
Loading

0 commit comments

Comments
 (0)