types change for afterResponse

This commit is contained in:
xion 2025-03-22 13:29:02 +08:00
parent 8f85ed4d4d
commit 64b37e369d

View File

@ -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,