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

Feat(request): export _request function #21

Merged
merged 8 commits into from
Oct 20, 2023
Merged

Conversation

wangcch
Copy link
Contributor

@wangcch wangcch commented Jun 21, 2023

export _request function to custom data or response type. The request function is base on _request.

// source code
export const request = <T, D = any>(config: AxiosRequestConfig<D>) =>
  _request<AxiosResponse<T, D>, D>(config);

@wangcch wangcch marked this pull request as ready for review October 19, 2023 09:01
@wangcch wangcch merged commit 0c49f44 into main Oct 20, 2023
@wangcch wangcch deleted the feat-custom-request branch October 20, 2023 07:26
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.

1 participant