How does TypeScript know that this union type of tuple types is equivalent to a tuple type of unions?

前端 未结 0 675
隐瞒了意图╮
隐瞒了意图╮ 2021-01-23 04:22

How does TypeScript know that this union type of tuple types is equivalent to a tuple type of unions?

type LHS = [\'a\' | \'b\', \'b\'];
type RHS = [\'a\', \'b\']         


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