Generic return type in custom promise function

后端 未结 0 793
北荒
北荒 2021-01-13 23:17

I\'ve created a reusable function using generics that fetches data so every response matches the specified type. How can I implement a generic return type for this function

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