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: support promised request interceptor #57

Merged
merged 1 commit into from
Jul 10, 2019

Conversation

clock157
Copy link
Contributor

@clock157 clock157 commented Jul 7, 2019

  1. 支持 Promise 化的 request interceptor

close #28 umijs/umi#2628

@clock157
Copy link
Contributor Author

没有异议就先合并了,发布 1.1.0

@clock157 clock157 merged commit aaf0bde into master Jul 10, 2019
@delete-merged-branch delete-merged-branch bot deleted the feat/interceptors_promise branch July 10, 2019 06:15
@cathy668
Copy link

好像还没支持呢
类型“(url: string, options: RequestOptionsInit) => Promise<{ url: string; options: { headers: { token: string; }; charset?: "utf8" | "gbk" | undefined; requestType?: "json" | "form" | undefined; data?: any; ... 24 more ...; window?: any; }; }>”的参数不能赋给类型“RequestInterceptor”的参数。
类型“Promise<{ url: string; options: { headers: { token: string; }; charset?: "utf8" | "gbk" | undefined; requestType?: "json" | "form" | undefined; data?: any; params?: object | URLSearchParams | undefined; ... 23 more ...; window?: any; }; }>”与类型“{ url?: string | undefined; options?: RequestOptionsInit | undefined; }”不具有相同的属性

@hyzx86
Copy link

hyzx86 commented Jun 6, 2022

刚下手 antd , 这不能异步写不下去了啊。。
有其他方案么?

image

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.

3 participants