Type Alias TraverseEachCallback<D>
TraverseEachCallback: ( doc: firestore.QueryDocumentSnapshot<D>, docIndex: number, batchIndex: number,) => void | Promise<void> Type Parameters
- D = firestore.DocumentData
Type declaration
- (
doc: firestore.QueryDocumentSnapshot<D>,
docIndex: number,
batchIndex: number,
): void | Promise<void> Parameters
- doc: firestore.QueryDocumentSnapshot<D>
- docIndex: number
- batchIndex: number
Returns 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.