Can I use conditional generic to set a callback return type in typescript?

前端 未结 0 1357
无人及你
无人及你 2021-01-25 21:48

I have a react component to which I\'m passing a generic. Based on this generic I would like to change the callback payload type.

In the example below I\'m passing the Re

相关标签:
回答
  • 消灭零回复
提交回复
热议问题