import { QueryConstraint as Constraint } from '@lemasc/firebase-wrapper/firestore' /** * This is a mock `QueryConstraint` interface that also accepts a `Doc` type argument. * This makes custom `where` and `orderBy` functions have intellisense working. */ export interface TypedQueryConstraint> extends Constraint { __doc?: Doc } export type QueryConstraint> = | Constraint | TypedQueryConstraint export type CollectionQueryType> = { constraints?: QueryConstraint[] isCollectionGroup?: boolean }