Skip to content

TypeScript API / @contentia/astro/live-collections / LiveCollectionData

Type Alias: LiveCollectionData<K> ​

ts
type LiveCollectionData<K> = ContentiaLiveCollections[K] extends Record<string, unknown> ? ContentiaLiveCollections[K] : Record<string, unknown>;

The data shape for one typed live collection.

Type Parameters ​

Type Parameter
K extends LiveCollectionKey