UNPKG

rxdb

Version:

A local-first realtime NoSQL Database for JavaScript applications - https://rxdb.info/

18 lines (17 loc) 1.32 kB
import type { RxCollection, ReplicationPullOptions, ReplicationPushOptions } from '../../types/index.d.ts'; import { RxReplicationState } from '../replication/index.ts'; import type { FirestoreCheckpointType, FirestoreOptions, SyncOptionsFirestore } from './firestore-types.ts'; export * from './firestore-helper.ts'; export * from './firestore-types.ts'; export declare class RxFirestoreReplicationState<RxDocType> extends RxReplicationState<RxDocType, FirestoreCheckpointType> { readonly firestore: FirestoreOptions<RxDocType>; readonly replicationIdentifierHash: string; readonly collection: RxCollection<RxDocType>; readonly pull?: ReplicationPullOptions<RxDocType, FirestoreCheckpointType> | undefined; readonly push?: ReplicationPushOptions<RxDocType> | undefined; readonly live: boolean; retryTime: number; autoStart: boolean; constructor(firestore: FirestoreOptions<RxDocType>, replicationIdentifierHash: string, collection: RxCollection<RxDocType>, pull?: ReplicationPullOptions<RxDocType, FirestoreCheckpointType> | undefined, push?: ReplicationPushOptions<RxDocType> | undefined, live?: boolean, retryTime?: number, autoStart?: boolean); } export declare function replicateFirestore<RxDocType>(options: SyncOptionsFirestore<RxDocType>): RxFirestoreReplicationState<RxDocType>;