firewalk
    Preparing search index...

    Type Alias TraverseEachCallback<AppModelType, DbModelType>

    TraverseEachCallback: (
        doc: firestore.QueryDocumentSnapshot<AppModelType, DbModelType>,
        docIndex: number,
        batchIndex: number,
    ) => 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.

    Type Parameters

    • AppModelType = firestore.DocumentData
    • DbModelType extends firestore.DocumentData = firestore.DocumentData

    Type declaration

      • (
            doc: firestore.QueryDocumentSnapshot<AppModelType, DbModelType>,
            docIndex: number,
            batchIndex: number,
        ): void | Promise<void>
      • Parameters

        Returns void | Promise<void>