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

Require interceptors to return values #4874

Merged
merged 2 commits into from Sep 26, 2022

Conversation

jennings
Copy link
Contributor

@jennings jennings commented Jul 22, 2022

Fixes #4873

Fixes the type definition for AxiosInterceptorManager<V>. Sensible interceptors must return either an AxiosRequestConfig or an AxiosResponse or else they break other interceptors and Axios internal logic. The current definition allows interceptors to return anything, including void.

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

Successfully merging this pull request may close these issues.

use method on AxiosInterceptorManager should not be generic
2 participants