typescript : type check optional parameter in a Function passed as arguments

前端 未结 0 1481
耶瑟儿~
耶瑟儿~ 2021-01-16 23:21

Here is the code: (question follows)

export type SomeType = 
    T extends [infer A, infer B] ?
      (fst: A, snd:B) => Promise 
                


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