Segments in TypeScript Connector

The path of the connector is defined with a collection of segments. There are three types of segments.