Type alias BatchCallback<D>

BatchCallback<D>: ((batchDocs, batchIndex) => void | Promise<void>)

Type Parameters

  • D = firestore.DocumentData

Type declaration

    • (batchDocs, batchIndex): void | Promise<void>
    • A function that takes batch doc snapshots and the 0-based batch index as its arguments.

      Parameters

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

      Returns void | Promise<void>

Generated using TypeDoc