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]
Defined in: types/fields.ts:124
Extract a specific literal type from a collection
Type Parameters ​
• Item
• Type extends string