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

useAxios Support custom ResponseType #2303

Closed
4 tasks done
laterdays opened this issue Oct 8, 2022 · 5 comments
Closed
4 tasks done

useAxios Support custom ResponseType #2303

laterdays opened this issue Oct 8, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@laterdays
Copy link

Clear and concise description of the problem

Now that axios supports custom responseType, I want useAxios to update

get<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;
delete<T = any, R = AxiosResponse<T>, D = any>(url: string, config?: AxiosRequestConfig<D>): Promise<R>;

Suggested solution

UseAxios<T, R,D>

Alternative

No response

Additional context

No response

Validations

@laterdays laterdays added the enhancement New feature or request label Oct 8, 2022
@laterdays
Copy link
Author

图片

@Surof1n
Copy link
Contributor

Surof1n commented Oct 8, 2022

Tell me what do you want to do?

It seems that this has already been implemented.

Снимок экрана 2022-10-09 в 00 40 09

@laterdays
Copy link
Author

There's already a PR for that

@laterdays
Copy link
Author

@Surof1n #2304

@stale
Copy link

stale bot commented Dec 8, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 8, 2022
@stale stale bot closed this as completed Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants