Directus / @directus/sdk / types / GetCollection
Type alias: GetCollection<Schema, CollectionName>
GetCollection<
Schema
,CollectionName
>:CollectionName
extends keyofCoreSchema
<Schema
> ?CoreSchema
<Schema
>[CollectionName
] :CollectionName
extends keyofSchema
?Schema
[CollectionName
] :never
Helper to extract a collection with fallback to defaults
Type parameters
• Schema extends object
• CollectionName extends AllCollections
<Schema
>