PropertySegment type

A single member access segment: an object property name or an array index.

type PropertySegment = string | number