Type Alias: RelationshipFieldsToItem<T>
RelationshipFieldsToItem<
T> =ItemTypeextends infer R ?RextendsItemType?Textends`${RelationshipTypeFields<R>}`?R:never:never:never
Defined in: schemas/v2/relationships.ts:182
Returns the item types to which the input has a relation with. Returns never if the item is no relation of any other resource.
Type Parameters
T
T extends `${Type}`