Type Alias: RelationshipFieldsToItem<T>
RelationshipFieldsToItem<
T
> =ItemType
extends infer R ?R
extendsItemType
?T
extends`${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}`