@magnetarjs/plugin-firestore
Version:
Magnetar plugin firestore
9 lines (8 loc) • 419 B
TypeScript
import type { SyncBatch } from '@magnetarjs/types';
import { Firestore, WriteBatch } from 'firebase/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;