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

fix: DefaultOptions typing was wrong [EXT-6172] #530

Closed
wants to merge 3 commits into from

Conversation

BobHemphill76
Copy link
Contributor

DefaultOptions typing was wrong.

AxiosRequestConfig has { headers?: { someHeaderType } }

where AxiosInstance has { headers: { someHeaderType } } // They ensure headers object exist

@BobHemphill76 BobHemphill76 requested a review from a team as a code owner February 4, 2025 22:24
@@ -13,10 +14,15 @@ export type DefaultOptions = AxiosRequestConfig & {
retryOnError?: boolean
}

export type InstanceDefaults = Omit<DefaultOptions, 'headers'> & {
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

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.

2 participants