Type Alias BatchCallback<D>

BatchCallback: (
    batchDocs: firestore.QueryDocumentSnapshot<D>[],
    batchIndex: number,
) => void | Promise<void>

A function that takes batch doc snapshots and the 0-based batch index as its arguments.

Type Parameters

  • D = firestore.DocumentData

Type declaration

    • (
          batchDocs: firestore.QueryDocumentSnapshot<D>[],
          batchIndex: number,
      ): void | Promise<void>
    • Parameters

      • batchDocs: firestore.QueryDocumentSnapshot<D>[]
      • batchIndex: number

      Returns void | Promise<void>