Taxonomy term selector.
type TermsField<T extends Record<string, any> = Record<string, any>> = (TermReference & T) | (TermReference & T)[];
type MainTerm = TermsField<{ color: string }>;
// Result: {
// id: string;
// url: string;
// slug: string;
// permalink: string;
// color: string;
// } | {
// id: string;
// url: string;
// slug: string;
// permalink: string;
// color: string;
// }[]