vue-hooks-plus icon indicating copy to clipboard operation
vue-hooks-plus copied to clipboard

useRequest 支持 initialData 正确的data类型

Open NelsonYong opened this issue 9 months ago • 0 comments

Description

useRequest 类型推导不完善,无法推导出 initialData 正确的data类型 。initialData 首受 service 影响,但不受 formatResult 的影响。

Suggested solution

typescript 函数重载

Alternative

No response

Additional context

No response

Validations

NelsonYong avatar May 15 '24 03:05 NelsonYong