UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

5 lines (4 loc) 644 B
import { AuthController, EntityCollection, PropertyConfig, ResolvedEntityCollection } from "../types"; export declare function getEntityPreviewKeys(authController: AuthController, targetCollection: EntityCollection<any>, fields: Record<string, PropertyConfig>, previewProperties?: string[], limit?: number): string[]; export declare function getEntityTitlePropertyKey<M extends Record<string, any>>(collection: EntityCollection<M>, propertyConfigs: Record<string, PropertyConfig<any>>): string | undefined; export declare function getEntityImagePreviewPropertyKey<M extends object>(collection: ResolvedEntityCollection<M>): string | undefined;