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.

chore(examples): sync axios generated client output

+4 -3
+4 -3
examples/openapi-ts-axios/src/client/client/client.gen.ts
··· 35 35 return getConfig(); 36 36 }; 37 37 38 - const beforeRequest = async (options: RequestOptions) => { 38 + const beforeRequest = async <TData = unknown, Url extends string = string>( 39 + options: RequestOptions<TData, boolean, Url>, 40 + ) => { 39 41 const opts = { 40 42 ..._config, 41 43 ...options, ··· 58 60 opts.body = opts.bodySerializer(opts.body); 59 61 } 60 62 61 - const url = buildUrl(opts); 63 + const url = buildUrl(opts as RequestOptions<unknown, boolean, string>); 62 64 63 65 return { opts, url }; 64 66 }; 65 67 66 68 // @ts-expect-error 67 69 const request: Client['request'] = async (options) => { 68 - // @ts-expect-error 69 70 const { opts, url } = await beforeRequest(options); 70 71 try { 71 72 // assign Axios here for consistency with fetch