Using a union but getting an error that the prop does not exists

前端 未结 0 1720
广开言路
广开言路 2020-12-25 13:48

I\'ve got a variable which type is a union:

const waypoint: Waypoint;

The Waypoint type is a union of 2 types:

ty         


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