Cannot be dynamically inferred after passing some generic parameters

后端 未结 0 851
迷失自我
迷失自我 2021-01-23 09:03
const a = <
  T extends any = any,
  B extends boolean = true,
  R extends T | undefined = B extends true ? T : T | undefined
&         


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