I\'ve got a variable which type is a union:
const waypoint: Waypoint;
The Waypoint type is a union of 2 types:
Waypoint
ty