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

Add type for the third parameter to use #3734

Closed

Conversation

sirctseb
Copy link

@sirctseb sirctseb commented Apr 7, 2021

Add the third parameter to AxiosInterceptorManager.use to the type declarations. Addresses #3733

Copy link

@shivanshr shivanshr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interface has been added.

@@ -122,8 +122,12 @@ export interface CancelTokenSource {
cancel: Canceler;
}

export interface AxiosInterceptorOptions {
synchronous: boolean;
runWhen: (config: AxiosRequestConfig) => boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There 2 options are also optional, which means users can only set synchronous or runWhen.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sirctseb can you have a look at this?

Copy link

@steph931 steph931 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much so what is max

@jasonsaayman
Copy link
Member

Closed in favour of #3800

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.

None yet

5 participants