types change for afterResponse
This commit is contained in:
		| @@ -46,7 +46,7 @@ export type Result<S = any> = { | |||||||
| // 额外功能 | // 额外功能 | ||||||
| export type DataOpts = Partial<QueryOpts> & { | export type DataOpts = Partial<QueryOpts> & { | ||||||
|   beforeRequest?: Fn; |   beforeRequest?: Fn; | ||||||
|   afterResponse?: <S = any>(result: Result<S>, ctx?: { req?: any; res?: any; fetch?: any }) => Promise<S>; |   afterResponse?: <S = any>(result: Result<S>, ctx?: { req?: any; res?: any; fetch?: any }) => Promise<Result<S>>; | ||||||
| }; | }; | ||||||
| /** | /** | ||||||
|  * 设置基础响应, 设置 success 和 showError, |  * 设置基础响应, 设置 success 和 showError, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user