Directus / @directus/sdk / types / PrimitiveFields
Type alias: PrimitiveFields<Schema, Item>
PrimitiveFields<
Schema
,Item
>:{ [Key in keyof Item]: Extract<Item[Key], ItemType<Schema>> extends never ? Key : never }
[keyofItem
]
Return string keys of all Primitive fields in the given schema Item
Type parameters
• Schema extends object
• Item