Directus / @directus/sdk / types / LiteralFields
Type Alias: LiteralFields<Item, Type> ​
LiteralFields<
Item
,Type
>:{ [Key in keyof Item]: Extract<Item[Key], Type>[] extends never[] ? never : Key }
[keyofItem
]
Extract a specific literal type from a collection
Type Parameters ​
• Item
• Type extends string