firewalk
    Preparing search index...

    Type Alias BatchCallback<AppModelType, DbModelType>

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

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

    Type Parameters

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

    Type declaration

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

        Returns void | Promise<void>