UNPKG

firewalk

Version:

A collection traversal library for Firestore

8 lines (7 loc) 352 B
import type { firestore } from 'firebase-admin'; import type { BatchCallback } from '.'; /** * A function that takes batch doc snapshots and the 0-based batch index and returns a boolean * indicating whether to exit traversal early. */ export type ExitEarlyPredicate<D = firestore.DocumentData> = (...args: Parameters<BatchCallback<D>>) => boolean;