firestore-snapshot-utils
Version:
[](https://github.com/ericvera/firestore-snapshot-utils/blob/master/LICENSE) [ • 731 B
TypeScript
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>;