File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/hooks/src/useRequest/docs/basic Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ const {
168
168
{
169
169
manual?: boolean ,
170
170
defaultParams?: TParams ,
171
- formatResult?:(response : TData )=> any ,
171
+ formatResult?:(response : TData )=> unknown ,
172
172
onBefore?: (params : TParams ) => void ,
173
173
onSuccess?: (data : TData , params : TParams ) => void ,
174
174
onError?: (e : Error , params : TParams ) => void ,
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ const {
165
165
{
166
166
manual?: boolean ,
167
167
defaultParams?: TParams ,
168
- formatResult?:(response : TData )=> any ,
168
+ formatResult?:(response : TData )=> unknown ,
169
169
onBefore?: (params : TParams ) => void ,
170
170
onSuccess?: (data : TData , params : TParams ) => void ,
171
171
onError?: (e : Error , params : TParams ) => void ,
You can’t perform that action at this time.
0 commit comments