You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the typeof useRequest<R, P> part requires instantiation expressions in TS 4.7. Or manually copy-paste fields like as data, loading, etc. in a new interface and use it as params type of useMyRequest
建议的解决方案 Proposed Solution
export those interfaces for the sake of DRY.
其他信息 Other information
The text was updated successfully, but these errors were encountered:
需求描述 Feature Description
Please export the return value interfaces like
QueryResult
etc.Say we want to wrap
useRequest
like:But currently
QueryResult
is not exported. We need to either refer it aswhere the
typeof useRequest<R, P>
part requires instantiation expressions in TS 4.7. Or manually copy-paste fields like asdata
,loading
, etc. in a new interface and use it as params type ofuseMyRequest
建议的解决方案 Proposed Solution
export those interfaces for the sake of DRY.
其他信息 Other information
The text was updated successfully, but these errors were encountered: