UNPKG

firestore-snapshot-utils

Version:

[![github license](https://img.shields.io/github/license/ericvera/firestore-snapshot-utils.svg?style=flat-square)](https://github.com/ericvera/firestore-snapshot-utils/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/firestore-snapshot-ut

7 lines (6 loc) 418 B
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;