types change for afterResponse
This commit is contained in:
parent
8f85ed4d4d
commit
64b37e369d
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user