Why use tuples in the extends clause of conditional types

后端 未结 0 1755
没有蜡笔的小新
没有蜡笔的小新 2020-12-29 20:45

What\'s the difference between the following two conditional types:

type IfVoid = [void] extends [P] ? True : False
type IfVoid

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