Assert a property's type on existence of another property on union type

前端 未结 0 1607
轻奢々
轻奢々 2021-01-28 06:49

Is it possible to assert a property\'s type, on an existence of another property?

For example:

interface Base {
             


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