UNPKG

diff-dom

Version:

A diff for DOM elements, as client-side JavaScript code. Gets all modifications, insertions and removals between two DOM fragments.

12 lines (11 loc) 421 B
import { elementNodeType } from "./types"; export declare class Diff { constructor(options?: {}); toString(): string; setValue(aKey: string | number, aValue: string | number | boolean | number[] | { [key: string]: string | { [key: string]: string; }; } | elementNodeType): this; } export declare function checkElementType(element: any, ...elementTypeNames: string[]): boolean;