“Conditional types” won't work with real function?

前端 未结 0 890
迷失自我
迷失自我 2021-02-01 09:11

I\'m reading https://www.typescriptlang.org/docs/handbook/2/conditional-types.html

I\'m wondering why this won\'t work?

interface IdLabel {
  id: number
}
         


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