Directus / @directus/sdk / types / FieldsWildcard
Type Alias: FieldsWildcard<Item, Fields> ​
FieldsWildcard<
Item
,Fields
>:unknown
extendsFields
? keyofItem
:UnpackList
<Fields
> extends infer Field ?Field
extendsundefined
? keyofItem
:Field
extends"*"
? keyofItem
:Field
extendsstring
?Field
:never
:never
Return all keys if Fields is undefined or contains '*'
Type Parameters ​
• Item extends object
• Fields