Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix axios types #283

Merged
merged 2 commits into from
Dec 17, 2021
Merged

Fix axios types #283

merged 2 commits into from
Dec 17, 2021

Conversation

jamonholmgren
Copy link
Member

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.

@jamonholmgren jamonholmgren merged commit 050967b into master Dec 17, 2021
@jamonholmgren jamonholmgren deleted the fix/axios-types branch December 17, 2021 19:55
infinitered-circleci pushed a commit that referenced this pull request Dec 17, 2021
## [2.1.5](v2.1.4...v2.1.5) (2021-12-17)

### Bug Fixes

* **types:** Update axios types ([#283](#283) by [@jamonholmgren](https://github.com/jamonholmgren)) ([050967b](050967b))
@infinitered-circleci
Copy link

🎉 This PR is included in version 2.1.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants