Directus / @directus/sdk / types / HasManyToAnyRelation
Type Alias: HasManyToAnyRelation<Item> ​
HasManyToAnyRelation<
Item
>:UnpackList
<Item
> extends infer TItem ?TItem
extendsobject
?"collection"
extends keyofTItem
?"item"
extends keyofTItem
?true
:never
:never
:never
:never
Determine whether a field definition has a many-to-any relation TODO try making this dynamic somehow instead of relying on "item" as key
Type Parameters ​
• Item