firestore-snapshot-utils
Version:
**Utils for testing Firestore DB snapshots**
7 lines (6 loc) • 418 B
TypeScript
import type { QueryDocumentSnapshot } from 'firebase-admin/firestore';
import type { DBSnapshotChanges } from './internal/DocumentChangeSnapshot.js';
export interface DebugOptions {
logTimestamps?: boolean;
}
export declare const getDBSnapshotChanges: (beforeDocs: QueryDocumentSnapshot[], afterDocs: QueryDocumentSnapshot[], maskKeys?: Record<string, string[]>, debugOptions?: DebugOptions) => DBSnapshotChanges;