type: T extends Entry<never> ? entry : T extends Singleton<never> ? singleton : T extends MediaObject ? media : T extends Collection<string> ? collection : string
The relation type, which is always a string. If the object field of this
Relation is an Entry, type will be entry, if it’s a Singleton, type will
be singleton, and so on.
Represents a Relation entity returned by the API.