Typescript generics return type issues

后端 未结 0 1304
既然无缘
既然无缘 2020-12-14 11:45

I use typescript generics in my project but it seems not work well.

example:

interface Test {
  a?: (v: T) => P
  b?: (v: P) => void
         


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