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

19 lines (18 loc) 731 B
export interface TimestampDebugOptions { logTimestamps?: boolean; docPath?: string; } /** * Extracts all unique timestamp values from an object into a Set. * The values are stored as strings (from timestamp.valueOf()) for easy sorting. * * This function is idempotent - calling it multiple times with the same * input * will always produce the same output, and it doesn't modify any input * parameters. * * @param value - The value to extract timestamps from * @param debugOptions - Options for debugging timestamp extraction * @returns A new Set containing all unique timestamp values as strings */ export declare const extractTimestamps: (value: unknown, debugOptions?: TimestampDebugOptions) => Set<string>;