File tree Expand file tree Collapse file tree 11 files changed +22063
-19306
lines changed
openapi-ts-nestjs/src/client
openapi-ts-openai/src/client
openapi-ts-tanstack-vue-query Expand file tree Collapse file tree 11 files changed +22063
-19306
lines changed Original file line number Diff line number Diff line change 77 " **/node_modules/" ,
88 " temp/" ,
99 " dev/.gen/" ,
10- " examples/openapi-ts-openai/src/client/**/*.ts" ,
1110 " **/test/generated/" ,
1211 " **/__snapshots__/" ,
1312 " **/.next/" ,
Original file line number Diff line number Diff line change @@ -52,6 +52,14 @@ export default tseslint.config(
5252 '@typescript-eslint/no-require-imports' : 'off' ,
5353 } ,
5454 } ,
55+ {
56+ files : [ '**/*.gen.ts' ] ,
57+ rules : {
58+ 'sort-keys-fix/sort-keys-fix' : 'off' ,
59+ 'typescript-sort-keys/interface' : 'off' ,
60+ 'typescript-sort-keys/string-enum' : 'off' ,
61+ } ,
62+ } ,
5563 {
5664 ignores : [
5765 '**/.tsdown/' ,
@@ -60,8 +68,6 @@ export default tseslint.config(
6068 'temp/' ,
6169 'dev/gen/' ,
6270 'dev/playground.ts' ,
63- 'examples/openapi-ts-nestjs/src/client/**/*.ts' ,
64- 'examples/openapi-ts-openai/src/client/**/*.ts' ,
6571 '**/test/generated/' ,
6672 '**/__snapshots__/' ,
6773 '**/.next/' ,
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ import type {
1515} from './types.gen' ;
1616
1717export type PetsControllerMethods = {
18- listPets : ( query ?: ListPetsData [ 'query' ] ) => Promise < ListPetsResponse > ;
1918 createPet : ( body : CreatePetData [ 'body' ] ) => Promise < CreatePetResponse > ;
2019 deletePet : ( path : DeletePetData [ 'path' ] ) => Promise < DeletePetResponse > ;
20+ listPets : ( query ?: ListPetsData [ 'query' ] ) => Promise < ListPetsResponse > ;
2121 showPetById : ( path : ShowPetByIdData [ 'path' ] ) => Promise < ShowPetByIdResponse > ;
2222 updatePet : (
2323 path : UpdatePetData [ 'path' ] ,
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ export type ClientOptions = {
77export type Pet = {
88 id : string ;
99 name : string ;
10- tag ?: string ;
1110 status ?: 'available' | 'pending' | 'sold' ;
11+ tag ?: string ;
1212} ;
1313
1414export type CreatePetBody = {
@@ -18,8 +18,8 @@ export type CreatePetBody = {
1818
1919export type UpdatePetBody = {
2020 name ?: string ;
21- tag ?: string ;
2221 status ?: 'available' | 'pending' | 'sold' ;
22+ tag ?: string ;
2323} ;
2424
2525export type Error = {
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ import type { ClientOptions as ClientOptions2 } from './types.gen';
1111 * `setConfig()`. This is useful for example if you're using Next.js
1212 * to ensure your client always has the correct values.
1313 */
14- export type CreateClientConfig < T extends ClientOptions = ClientOptions2 > = ( override ?: Config < ClientOptions & T > ) => Config < Required < ClientOptions > & T > ;
14+ export type CreateClientConfig < T extends ClientOptions = ClientOptions2 > = (
15+ override ?: Config < ClientOptions & T > ,
16+ ) => Config < Required < ClientOptions > & T > ;
1517
16- export const client = createClient ( createConfig < ClientOptions2 > ( { baseUrl : 'https://api.openai.com/v1' } ) ) ;
18+ export const client = createClient (
19+ createConfig < ClientOptions2 > ( { baseUrl : 'https://api.openai.com/v1' } ) ,
20+ ) ;
Original file line number Diff line number Diff line change 11// This file is auto-generated by @hey-api/openapi-ts
22
33import type { Auth } from '../core/auth.gen' ;
4- import type {
5- ServerSentEventsOptions ,
6- ServerSentEventsResult ,
7- } from '../core/serverSentEvents.gen' ;
4+ import type { ServerSentEventsOptions , ServerSentEventsResult } from '../core/serverSentEvents.gen' ;
85import type { Client as CoreClient , Config as CoreConfig } from '../core/types.gen' ;
96import type { Middleware } from './utils.gen' ;
107
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments