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

interceptors types are broken #4634

Open
popuguytheparrot opened this issue Apr 26, 2022 · 3 comments
Open

interceptors types are broken #4634

popuguytheparrot opened this issue Apr 26, 2022 · 3 comments

Comments

@popuguytheparrot
Copy link

use<T = V>(onFulfilled?: (value: V) => T | Promise, onRejected?: (error: any) => any, options?: AxiosInterceptorOptions): number;

This is not correct type. Here need AxiosError

@github-actions
Copy link
Contributor

Hello! 👋

This issue is being automatically closed because it does not follow the issue template. Please read the issue template carefully and follow all of the instructions when opening a new issue.

Thanks

@productdevbook
Copy link

some problem

@DaniilIsupov
Copy link

i have same problem
in my code onRejected returned undefined
i would like typescript to take this as an error

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

No branches or pull requests

4 participants