vue-hooks-plus
vue-hooks-plus copied to clipboard
useRequest 支持 initialData 正确的data类型
Description
useRequest 类型推导不完善,无法推导出 initialData 正确的data类型 。initialData 首受 service 影响,但不受 formatResult 的影响。
Suggested solution
typescript 函数重载
Alternative
No response
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.