object-deep-compare
Version:
A type-safe collection of comparison methods for objects and arrays in TypeScript/JavaScript
15 lines (14 loc) • 986 B
TypeScript
import { ComparisonOptions, DetailedDifference } from '../types';
/**
* Handles comparison for arrays and objects
* @param firstValue - First value to compare
* @param secondValue - Second value to compare
* @param currentPath - Current path for conflicts
* @param options - Comparison options
* @param isArrayComparison - Whether this is an array comparison
* @param detailed - Whether to return detailed difference information
* @param firstVisited - Map of already visited objects in the first object tree
* @param secondVisited - Map of already visited objects in the second object tree
* @returns Array of conflict paths or detailed differences, or boolean indicating equality
*/
export declare const handleDepthComparison: (firstValue: any, secondValue: any, currentPath: string, options: ComparisonOptions, isArrayComparison: boolean, detailed?: boolean, firstVisited?: Map<any, string>, secondVisited?: Map<any, string>) => string[] | DetailedDifference[] | boolean;