fix(types): add handlers to AxiosInterceptorManager interface#5551
Merged
jasonsaayman merged 7 commits intoaxios:v1.xfrom Dec 30, 2025
Merged
fix(types): add handlers to AxiosInterceptorManager interface#5551jasonsaayman merged 7 commits intoaxios:v1.xfrom
jasonsaayman merged 7 commits intoaxios:v1.xfrom
Conversation
tiagobarros01
approved these changes
Feb 20, 2023
ODGodinho
approved these changes
Feb 24, 2023
hexiaokang
approved these changes
Feb 25, 2023
21edba8 to
63ab2f1
Compare
ODGodinho
approved these changes
Feb 25, 2023
tiagobarros01
approved these changes
Mar 7, 2023
63ab2f1 to
54354d9
Compare
54354d9 to
6c967e3
Compare
|
Ran into this issue trying to read |
|
Waiting |
Member
|
@tiborpilz is it possible for you to resolve conflicts? |
6c967e3 to
6f1a291
Compare
Contributor
Author
|
@jasonsaayman sure :) |
6f1a291 to
c058c41
Compare
c058c41 to
2504ccf
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds the missing handlers property to the AxiosInterceptorManager interface to resolve testing issues where direct access to interceptor handlers was not available through the TypeScript definitions.
Key Changes:
- Introduces new type aliases (
AxiosInterceptorFulfilled,AxiosInterceptorRejected) to reduce duplication - Adds the
AxiosInterceptorHandlerinterface to represent individual interceptor handlers - Exposes the
handlersarray property inAxiosInterceptorManager
Reviewed Changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| index.d.ts | Adds type aliases for interceptor callbacks, defines handler structure, and exposes handlers array in the ESM type definitions |
| index.d.cts | Mirrors the changes from index.d.ts in the CommonJS type definitions |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
jasonsaayman
approved these changes
Dec 30, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the
handlersproperty to theAxiosInterceptorManagerinterface. The missing property has been an issue in correctly setting up interceptor tests, as described in #3792