UNPKG

react-native-diff-viewer

Version:

A React Native component for viewing and comparing JSON configurations with side-by-side diff view

16 lines (15 loc) 515 B
import { DIFF_TYPES } from '../constants'; type DiffItem = { key: string; type: typeof DIFF_TYPES[keyof typeof DIFF_TYPES]; oldValue?: string; newValue?: string; }; /** * Compares two JSON objects and returns an array of differences * @param newConfig - The new configuration object * @param oldConfig - The old configuration object * @returns Array of differences with their types and values */ export declare const diffJSON: (newConfig: unknown, oldConfig: unknown) => DiffItem[]; export {};