Directus / @directus/sdk / types / PickFlatFields
Type Alias: PickFlatFields<Schema, Item, Fields> ​
PickFlatFields<
Schema
,Item
,Fields
>:Extract
<Fields
, keyofItem
> extendsnever
?never
:Pick
<RemoveRelationships
<Schema
,Item
>,Extract
<Fields
, keyofItem
>>
Extract the required fields from an item
Type Parameters ​
• Schema
• Item
• Fields