Pular para o conteúdo principal

Relation <T>

Represents a Relation entity returned by the API.

Index

Properties

Properties

id

id: number

object

object: T

type

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.