Skip to content

Commit

Permalink
docs: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlubos committed Dec 5, 2024
1 parent ec48d32 commit 9fc6e77
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 19 deletions.
1 change: 0 additions & 1 deletion examples/openapi-ts-axios/src/client/index.ts
Original file line number Diff line number Diff line change
@@ -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';
2 changes: 2 additions & 0 deletions examples/openapi-ts-fastify/src/client/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export type ListPetsResponse = ListPetsResponses[keyof ListPetsResponses];

export type CreatePetsData = {
body?: never;
path?: never;
query?: never;
url: '/pets';
};

Expand Down
1 change: 0 additions & 1 deletion examples/openapi-ts-fetch/src/client/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Original file line number Diff line number Diff line change
@@ -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';
Original file line number Diff line number Diff line change
@@ -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';
Original file line number Diff line number Diff line change
@@ -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';
1 change: 0 additions & 1 deletion examples/openapi-ts-tanstack-vue-query/src/client/index.ts
Original file line number Diff line number Diff line change
@@ -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'
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang="ts" setup>
import { PetSchema, type Pet } from '@/client'
import type { Pet } from '@/client'
import { PetSchema } from '@/client/schemas.gen'
import {
addPetMutation,
getPetByIdOptions,
Expand Down
8 changes: 4 additions & 4 deletions packages/client-fetch/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ export type OptionsLegacyParser<
ThrowOnError extends boolean = boolean,
> = Data extends { body?: any }
? Data extends { headers?: any }
? OmitKeys<RequestOptions<ThrowOnError>, 'body' | 'headers'> & Data
: OmitKeys<RequestOptions<ThrowOnError>, 'body'> &
? OmitKeys<RequestOptions<ThrowOnError>, 'body' | 'headers' | 'url'> & Data
: OmitKeys<RequestOptions<ThrowOnError>, 'body' | 'url'> &
Data &
Pick<RequestOptions<ThrowOnError>, 'headers'>
: Data extends { headers?: any }
? OmitKeys<RequestOptions<ThrowOnError>, 'headers'> &
? OmitKeys<RequestOptions<ThrowOnError>, 'headers' | 'url'> &
Data &
Pick<RequestOptions<ThrowOnError>, 'body'>
: RequestOptions<ThrowOnError> & Data;
: OmitKeys<RequestOptions<ThrowOnError>, 'url'> & Data;
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ export type OptionsLegacyParser<
ThrowOnError extends boolean = boolean,
> = Data extends { body?: any }
? Data extends { headers?: any }
? OmitKeys<RequestOptions<ThrowOnError>, 'body' | 'headers'> & Data
: OmitKeys<RequestOptions<ThrowOnError>, 'body'> &
? OmitKeys<RequestOptions<ThrowOnError>, 'body' | 'headers' | 'url'> & Data
: OmitKeys<RequestOptions<ThrowOnError>, 'body' | 'url'> &
Data &
Pick<RequestOptions<ThrowOnError>, 'headers'>
: Data extends { headers?: any }
? OmitKeys<RequestOptions<ThrowOnError>, 'headers'> &
? OmitKeys<RequestOptions<ThrowOnError>, 'headers' | 'url'> &
Data &
Pick<RequestOptions<ThrowOnError>, 'body'>
: RequestOptions<ThrowOnError> & Data;
: OmitKeys<RequestOptions<ThrowOnError>, 'url'> & Data;
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ export type OptionsLegacyParser<
ThrowOnError extends boolean = boolean,
> = Data extends { body?: any }
? Data extends { headers?: any }
? OmitKeys<RequestOptions<ThrowOnError>, 'body' | 'headers'> & Data
: OmitKeys<RequestOptions<ThrowOnError>, 'body'> &
? OmitKeys<RequestOptions<ThrowOnError>, 'body' | 'headers' | 'url'> & Data
: OmitKeys<RequestOptions<ThrowOnError>, 'body' | 'url'> &
Data &
Pick<RequestOptions<ThrowOnError>, 'headers'>
: Data extends { headers?: any }
? OmitKeys<RequestOptions<ThrowOnError>, 'headers'> &
? OmitKeys<RequestOptions<ThrowOnError>, 'headers' | 'url'> &
Data &
Pick<RequestOptions<ThrowOnError>, 'body'>
: RequestOptions<ThrowOnError> & Data;
: OmitKeys<RequestOptions<ThrowOnError>, 'url'> & Data;

0 comments on commit 9fc6e77

Please sign in to comment.