How to define an array of multiple types without mixing up properties from different types by union

前端 未结 0 1534
情话喂你
情话喂你 2021-01-07 04:32

Having an array of multiple types defined with union, I end up with the element of type A is allowed have properties of type B, which I\'d like to avoid.

type         


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