UNPKG

@magnetarjs/plugin-firestore-admin

Version:

Magnetar plugin firestore-admin

9 lines (8 loc) 425 B
import type { SyncBatch } from '@magnetarjs/types'; import { Firestore, WriteBatch } from 'firebase-admin/firestore'; export declare function createWriteBatch(db: Firestore): WriteBatch; /** * A function that applies everything in the `SyncBatch` to a Firestore's `WriteBatch`. * It mutates the passed `batch`. */ export declare function applySyncBatch(writeBatch: WriteBatch, batch: SyncBatch, db: Firestore): undefined;