Typescript type can not be inferred if function parameter is used

后端 未结 0 709
隐瞒了意图╮
隐瞒了意图╮ 2021-01-02 23:19

Lets say i have this generic function:

const myFn = (p: {
  a: (n: number) => T,
  b: (o: T) => void,
})         


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