UNPKG

firesage

Version:

🔥 Extremely High Precision Typescript Wrapper for Firestore Web, Providing Unparalleled Type Safe and Dev Experience

11 lines (8 loc) • 560 B
import { FirestoreAndFirestoreTesting, WriteBatch } from '../types'; /** Creates a write batch, used for performing multiple writes as a single atomic operation. The maximum number of writes allowed in a single WriteBatch is 500. Unlike transactions, write batches are persisted offline and therefore are preferable when you don't need to condition your writes on read data. @returns A WriteBatch that can be used to atomically execute multiple writes. */ export declare const writeBatch: (firestore?: FirestoreAndFirestoreTesting) => WriteBatch;