Type Alias ExitEarlyPredicate<D>

ExitEarlyPredicate: (...args: Parameters<BatchCallback<D>>) => boolean

A function that takes batch doc snapshots and the 0-based batch index and returns a boolean indicating whether to exit traversal early.

Type Parameters

  • D = firestore.DocumentData

Type declaration