From 9fc6e777de59fb5d5d7d4d919268840fddb6e9b7 Mon Sep 17 00:00:00 2001 From: Lubos Date: Thu, 5 Dec 2024 16:34:04 +0800 Subject: [PATCH] docs: update examples --- examples/openapi-ts-axios/src/client/index.ts | 1 - examples/openapi-ts-fastify/src/client/types.gen.ts | 2 ++ examples/openapi-ts-fetch/src/client/index.ts | 1 - .../src/client/index.ts | 1 - .../openapi-ts-tanstack-react-query/src/client/index.ts | 1 - .../openapi-ts-tanstack-svelte-query/src/client/index.ts | 1 - .../openapi-ts-tanstack-vue-query/src/client/index.ts | 1 - .../src/views/TanstackExample.vue | 3 ++- packages/client-fetch/src/types.ts | 8 ++++---- .../v3-hey-api-client-fetch-bundle/client/types.ts.snap | 8 ++++---- .../client/types.ts.snap | 8 ++++---- 11 files changed, 16 insertions(+), 19 deletions(-) diff --git a/examples/openapi-ts-axios/src/client/index.ts b/examples/openapi-ts-axios/src/client/index.ts index 745c8f67a..688e3c912 100644 --- a/examples/openapi-ts-axios/src/client/index.ts +++ b/examples/openapi-ts-axios/src/client/index.ts @@ -1,4 +1,3 @@ // This file is auto-generated by @hey-api/openapi-ts -export * from './schemas.gen'; export * from './sdk.gen'; export * from './types.gen'; diff --git a/examples/openapi-ts-fastify/src/client/types.gen.ts b/examples/openapi-ts-fastify/src/client/types.gen.ts index 18ad10e60..bf1ded02f 100644 --- a/examples/openapi-ts-fastify/src/client/types.gen.ts +++ b/examples/openapi-ts-fastify/src/client/types.gen.ts @@ -45,6 +45,8 @@ export type ListPetsResponse = ListPetsResponses[keyof ListPetsResponses]; export type CreatePetsData = { body?: never; + path?: never; + query?: never; url: '/pets'; }; diff --git a/examples/openapi-ts-fetch/src/client/index.ts b/examples/openapi-ts-fetch/src/client/index.ts index 745c8f67a..688e3c912 100644 --- a/examples/openapi-ts-fetch/src/client/index.ts +++ b/examples/openapi-ts-fetch/src/client/index.ts @@ -1,4 +1,3 @@ // This file is auto-generated by @hey-api/openapi-ts -export * from './schemas.gen'; export * from './sdk.gen'; export * from './types.gen'; diff --git a/examples/openapi-ts-tanstack-angular-query-experimental/src/client/index.ts b/examples/openapi-ts-tanstack-angular-query-experimental/src/client/index.ts index 745c8f67a..688e3c912 100644 --- a/examples/openapi-ts-tanstack-angular-query-experimental/src/client/index.ts +++ b/examples/openapi-ts-tanstack-angular-query-experimental/src/client/index.ts @@ -1,4 +1,3 @@ // This file is auto-generated by @hey-api/openapi-ts -export * from './schemas.gen'; export * from './sdk.gen'; export * from './types.gen'; diff --git a/examples/openapi-ts-tanstack-react-query/src/client/index.ts b/examples/openapi-ts-tanstack-react-query/src/client/index.ts index 745c8f67a..688e3c912 100644 --- a/examples/openapi-ts-tanstack-react-query/src/client/index.ts +++ b/examples/openapi-ts-tanstack-react-query/src/client/index.ts @@ -1,4 +1,3 @@ // This file is auto-generated by @hey-api/openapi-ts -export * from './schemas.gen'; export * from './sdk.gen'; export * from './types.gen'; diff --git a/examples/openapi-ts-tanstack-svelte-query/src/client/index.ts b/examples/openapi-ts-tanstack-svelte-query/src/client/index.ts index 745c8f67a..688e3c912 100644 --- a/examples/openapi-ts-tanstack-svelte-query/src/client/index.ts +++ b/examples/openapi-ts-tanstack-svelte-query/src/client/index.ts @@ -1,4 +1,3 @@ // This file is auto-generated by @hey-api/openapi-ts -export * from './schemas.gen'; export * from './sdk.gen'; export * from './types.gen'; diff --git a/examples/openapi-ts-tanstack-vue-query/src/client/index.ts b/examples/openapi-ts-tanstack-vue-query/src/client/index.ts index c7900424d..544a87d45 100644 --- a/examples/openapi-ts-tanstack-vue-query/src/client/index.ts +++ b/examples/openapi-ts-tanstack-vue-query/src/client/index.ts @@ -1,4 +1,3 @@ // This file is auto-generated by @hey-api/openapi-ts -export * from './schemas.gen' export * from './sdk.gen' export * from './types.gen' diff --git a/examples/openapi-ts-tanstack-vue-query/src/views/TanstackExample.vue b/examples/openapi-ts-tanstack-vue-query/src/views/TanstackExample.vue index eb99a3077..8664094e2 100644 --- a/examples/openapi-ts-tanstack-vue-query/src/views/TanstackExample.vue +++ b/examples/openapi-ts-tanstack-vue-query/src/views/TanstackExample.vue @@ -1,5 +1,6 @@