blob: 27af78d410576ea59bd967285cbd372472e13e0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
interface MorphDomOptions {
getNodeKey?: (node: Node) => any;
onBeforeNodeAdded?: (node: Node) => false | Node;
onNodeAdded?: (node: Node) => void;
onBeforeElUpdated?: (fromEl: HTMLElement, toEl: HTMLElement) => boolean;
onElUpdated?: (el: HTMLElement) => void;
onBeforeNodeDiscarded?: (node: Node) => boolean;
onNodeDiscarded?: (node: Node) => void;
onBeforeElChildrenUpdated?: (fromEl: HTMLElement, toEl: HTMLElement) => boolean;
skipFromChildren?: (fromEl: HTMLElement) => boolean;
addChild?: (parent: HTMLElement, child: HTMLElement) => void;
childrenOnly?: boolean;
}
declare function morphdom(
fromNode: Node,
toNode: Node | string,
options?: MorphDomOptions,
): Node;
export default morphdom;
|