diff-dom
Version:
A diff for DOM elements, as client-side JavaScript code. Gets all modifications, insertions and removals between two DOM fragments.
5 lines (4 loc) • 299 B
TypeScript
import { DiffDOMOptions, diffType } from "../types";
import { Diff } from "../helpers";
export declare function applyDiff(tree: Element, diff: diffType, options: DiffDOMOptions): boolean;
export declare function applyDOM(tree: Element, diffs: (Diff | diffType)[], options: DiffDOMOptions): boolean;