firewalk
Version:
A collection traversal library for Firestore
6 lines (5 loc) • 299 B
TypeScript
import type { firestore } from 'firebase-admin';
/**
* A function that takes batch doc snapshots and the 0-based batch index as its arguments.
*/
export type BatchCallback<D = firestore.DocumentData> = (batchDocs: firestore.QueryDocumentSnapshot<D>[], batchIndex: number) => void | Promise<void>;