UNPKG

jsondiffpatch

Version:

JSON diff & patch (object and array diff, text diff, multiple output formats)

16 lines (15 loc) 752 B
import DiffContext from "../contexts/diff.js"; import PatchContext from "../contexts/patch.js"; import ReverseContext from "../contexts/reverse.js"; import type { Filter } from "../types.js"; export interface MatchContext { objectHash?: ((item: object, index?: number) => string | undefined) | undefined; matchByPosition?: boolean | undefined; hashCache1?: (string | undefined)[]; hashCache2?: (string | undefined)[]; } export declare const diffFilter: Filter<DiffContext>; export declare const patchFilter: Filter<PatchContext>; export declare const collectChildrenPatchFilter: Filter<PatchContext>; export declare const reverseFilter: Filter<ReverseContext>; export declare const collectChildrenReverseFilter: Filter<ReverseContext>;