Argument type inference in TypeScript

后端 未结 0 1262
-上瘾入骨i
-上瘾入骨i 2020-12-12 04:02

I have the following code:

type Inferred = T extends (...args: (infer UnionType)[]) => any ? UnionType : never

function f(first: \'first\', secon         


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