infinitered / apisauce

Axios + standardized errors + request/response transforms.
MIT License
2.78k stars 184 forks source link

Fix axios types #283

Closed jamonholmgren closed 2 years ago

jamonholmgren commented 2 years ago

With the latest update (2.1.4), I'm getting an error:

node_modules/apisauce/apisauce.d.ts:96:27 - error TS2315: Type 'AxiosRequestConfig' is not generic.

96   any: <T, U = T>(config: AxiosRequestConfig<T>) => Promise<ApiResponse<T, U>>
                             ~~~~~~~~~~~~~~~~~~~~~

This update fixes the AxiosRequestConfig type to remove the generic, which apparently has gone away.

infinitered-circleci commented 2 years ago

:tada: This PR is included in version 2.1.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket: