Directus / @directus/sdk / types / MergeRelationalFields
Type Alias: MergeRelationalFields<FieldList> ​
MergeRelationalFields<
FieldList
>:Exclude
<UnpackList
<FieldList
>,string
> extends infer RelatedFields ?{ [Key in RelatedFields extends any ? keyof RelatedFields : never]-?: Exclude<RelatedFields[Key], undefined> }
:never
Merge union of optional objects
Type Parameters ​
• FieldList