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

Property 'clear' does not exist on type 'AxiosInterceptorManager<AxiosRequestConfig<any>> #5009

Closed
s-sasaki-0529 opened this issue Oct 5, 2022 · 1 comment · Fixed by #5010

Comments

@s-sasaki-0529
Copy link
Contributor

Describe the bug

I tried to use the function added in #4248 with TypeScript, but got the following error.

Property 'clear' does not exist on type 'AxiosInterceptorManager<AxiosRequestConfig<any>>

To Reproduce

Execution is possible, but type checking fails.

import axios from "axios";

axios.interceptors.request.clear()

Expected behavior

Successful type check

Environment

  • Axios 1.0.0
  • TypeScript 4.8.4

Additional context/Screenshots

@jasonsaayman
Copy link
Member

Merging this now. Thanks for the PR.

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 a pull request may close this issue.

2 participants