firelordjs
Version:
🔥 High Precision Typescript Wrapper for Firestore Web, Providing Unparalleled Type Safe and Dev Experience
30 lines (29 loc) • 1.69 kB
TypeScript
import { GetFirelordShakable } from './types';
import { Timestamp } from 'firebase/firestore';
export declare const getFirelordShakable: GetFirelordShakable;
/**
* Gets a FirelordReference instance that refers to the doc, collection, and collectionGroup at the specified absolute path.
* @param firestore - A reference to the root `Firestore` instance.
* @param collectionIDs - all the collectionID(s) needed to build this collection path.
* @returns function of DocumentReference, CollectionReference, CollectionGroup and composite queries.
*/
export declare const getFirelord: import("./types").GetFirelord<{
docCreator: import("./types").DocCreator;
collectionCreator: import("./types").CollectionCreator;
collectionGroupCreator: import("./types").CollectionGroupCreator;
andCreator: import("./types").AndCreator;
orCreator: import("./types").OrCreator;
}>;
export declare const toTimestamp: ({ seconds, nanoseconds, }: {
seconds: number;
nanoseconds: number;
}) => Timestamp;
export { getFirestore, Timestamp, GeoPoint, Bytes, connectFirestoreEmulator, } from 'firebase/firestore';
export * from './batch';
export * from './transaction';
export * from './fieldValues';
export * from './operations';
export * from './queryConstraints';
export * from './refs';
export * from './equal';
export type { MetaType, MetaTypeCreator, AbstractMetaTypeCreator, ServerTimestamp, Delete, PossiblyReadAsUndefined, DocumentReference, CollectionReference, Query, DocumentSnapshot, QuerySnapshot, QueryDocumentSnapshot, WriteBatch, RunTransaction, GetDocIds, Transaction, GetCollectionIds, FirelordRef, OnSnapshot, Unsubscribe, ArrayUnionOrRemove, } from './types';