UNPKG

smart-json-diff

Version:

A modern, compact JSON comparison library with path-aware output and multiple output modes

17 lines (16 loc) 386 B
export type DiffResult = { path: string; old: any; new: any; }; export type DiffEntry = { old: any; new: any; }; export type SmartJsonDiffOptions = { output?: 'array' | 'object' | 'callback'; onChange?: (path: string, oldVal: any, newVal: any) => void; filterPath?: (path: string) => boolean; compareArraysByIndex?: boolean; strict?: boolean; };