Directus / @directus/sdk / types / GetCollectionName
Type alias: GetCollectionName<Schema, Collection, FullSchema>
GetCollectionName<
Schema
,Collection
,FullSchema
>:{ [K in keyof FullSchema]: UnpackList<FullSchema[K]> extends Collection ? K : never }
[keyofFullSchema
]
Helper to extract a collection name
Type parameters
• Schema extends object
• Collection
• FullSchema extends object
= CompleteSchema
<Schema
>