Type alias TraverseEachCallback<D>

TraverseEachCallback<D>: ((doc, docIndex, batchIndex) => void | Promise<void>)

Type Parameters

  • D = firestore.DocumentData

Type declaration

    • (doc, docIndex, batchIndex): void | Promise<void>
    • An asynchronous function that takes a document snapshot, its 0-based index within the batch, and the 0-based index of the batch as arguments.

      Parameters

      • doc: firestore.QueryDocumentSnapshot<D>
      • docIndex: number
      • batchIndex: number

      Returns void | Promise<void>

Generated using TypeDoc