xmirror-components 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -70,7 +70,7 @@ export interface OptionsProps<T = AnyObject> {
|
|
|
70
70
|
* 响应时回调
|
|
71
71
|
* @param response 响应数据
|
|
72
72
|
*/
|
|
73
|
-
onAfterRequest?: <R = T>(response:
|
|
73
|
+
onAfterRequest?: <R = T>(response: ResponseJSON) => Promise<ResponseType<R> | undefined> | R[] | undefined;
|
|
74
74
|
}
|
|
75
75
|
export interface ReturnData<T = AnyObject> {
|
|
76
76
|
/**
|
package/build/lib/index.d.ts
CHANGED
|
@@ -279,7 +279,7 @@ declare interface OptionsProps<T = AnyObject> {
|
|
|
279
279
|
* 响应时回调
|
|
280
280
|
* @param response 响应数据
|
|
281
281
|
*/
|
|
282
|
-
onAfterRequest?: <R = T>(response:
|
|
282
|
+
onAfterRequest?: <R = T>(response: ResponseJSON) => Promise<ResponseType_2<R> | undefined> | R[] | undefined;
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
declare interface PaginationResponse<T> {
|
package/build/package.json
CHANGED
|
@@ -70,7 +70,7 @@ export interface OptionsProps<T = AnyObject> {
|
|
|
70
70
|
* 响应时回调
|
|
71
71
|
* @param response 响应数据
|
|
72
72
|
*/
|
|
73
|
-
onAfterRequest?: <R = T>(response:
|
|
73
|
+
onAfterRequest?: <R = T>(response: ResponseJSON) => Promise<ResponseType<R> | undefined> | R[] | undefined;
|
|
74
74
|
}
|
|
75
75
|
export interface ReturnData<T = AnyObject> {
|
|
76
76
|
/**
|