Can't assign equivalent properties of objects with same union type

前端 未结 0 772
北恋
北恋 2021-01-05 09:33

I was constructing a union in order to allow a type to have one or the other of two properties but not both. Here\'s what I\'m using:

type ObjBase = {
    fo         


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