import { MetaType } from '../metaTypeCreator'; import { Query } from './query'; /** * A {@link CollectionGroup} refers to all documents that are contained in a * collection or sub-collection with a specific collection ID. */ export interface CollectionGroup extends Query { } export type CollectionGroupFunction = { /** * related documentations: * - {@link https://firelordjs.com/quick_start/#query query} * - {@link https://firelordjs.com/quick_start/#onsnapshot onSnapshot} * @returns — The created {@link CollectionGroup}. */ (): CollectionGroup; }; export type CollectionGroupCreator = (fStore: void, collectionID: T['collectionID']) => CollectionGroupFunction;