How do I define a generic type that takes another type?

后端 未结 0 768
太阳男子
太阳男子 2020-11-28 01:10

This is basically what I want to achieve:

type Consumer = (data: T) => Promise;


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