Skip to content

Add getUri signature to TypeScript definition. #1736

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

Merged
merged 3 commits into from
Aug 21, 2018
Merged

Add getUri signature to TypeScript definition. #1736

merged 3 commits into from
Aug 21, 2018

Conversation

atrauzzi
Copy link
Contributor

This is in support of #1624. It adds a definition for the getUri feature added by @delirius325 to the base axios type.

index.d.ts Outdated
@@ -127,6 +127,7 @@ export interface AxiosInstance {
request: AxiosInterceptorManager<AxiosRequestConfig>;
response: AxiosInterceptorManager<AxiosResponse>;
};
getUri(config: AxiosRequestConfig): string;
Copy link
Member

Choose a reason for hiding this comment

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

config should be optional (it falls back to only using the default settings)

@emilyemorehouse
Copy link
Member

Thank you @atrauzzi! There's just the small update needed (see my comment) and I'll merge this.

@emilyemorehouse emilyemorehouse self-assigned this Aug 21, 2018
@atrauzzi
Copy link
Contributor Author

Woops! I should have known that... 😄

Alright, change made!

@emilyemorehouse emilyemorehouse merged commit 7db0494 into axios:master Aug 21, 2018
@atrauzzi atrauzzi deleted the add-get-uri-definition branch August 21, 2018 18:37
@axios axios locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy