fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: examples

+12 -5
+7 -3
examples/openapi-ts-axios/src/client/client/client.gen.ts
··· 35 35 return getConfig(); 36 36 }; 37 37 38 - const beforeRequest = async <TData = unknown, Url extends string = string>( 39 - options: RequestOptions<TData, boolean, Url>, 38 + const beforeRequest = async < 39 + TData = unknown, 40 + ThrowOnError extends boolean = boolean, 41 + Url extends string = string, 42 + >( 43 + options: RequestOptions<TData, ThrowOnError, Url>, 40 44 ) => { 41 45 const opts = { 42 46 ..._config, ··· 60 64 opts.body = opts.bodySerializer(opts.body); 61 65 } 62 66 63 - const url = buildUrl(opts as RequestOptions<unknown, boolean, string>); 67 + const url = buildUrl(opts); 64 68 65 69 return { opts, url }; 66 70 };
+5 -2
examples/openapi-ts-axios/src/client/client/types.gen.ts
··· 115 115 116 116 type BuildUrlFn = < 117 117 TData extends { 118 - body?: unknown; 119 118 path?: Record<string, unknown>; 120 119 query?: Record<string, unknown>; 121 120 url: string; 122 121 }, 123 122 >( 124 - options: TData & Options<TData>, 123 + options: TData & 124 + Pick< 125 + RequestOptions<unknown, boolean>, 126 + 'axios' | 'baseURL' | 'paramsSerializer' | 'querySerializer' 127 + >, 125 128 ) => string; 126 129 127 130 export type Client = CoreClient<RequestFn, Config, MethodFn, BuildUrlFn, SseFn> & {