1 | declare module "*.html" {
|
2 | var html: string;
|
3 | export = html;
|
4 | }
|
5 | declare module 'morphdom' {
|
6 | interface MorphDomOptions {
|
7 | getNodeKey?: (node: Node) => any,
|
8 | onBeforeNodeAdded?: (node: Node) => Node,
|
9 | onNodeAdded?: (node: Node) => Node,
|
10 | onBeforeElUpdated?: (fromEl: HTMLElement, toEl: HTMLElement) => boolean,
|
11 | onElUpdated?: (el: HTMLElement) => void,
|
12 | onBeforeNodeDiscarded?: (node: Node) => boolean,
|
13 | onNodeDiscarded?: (node: Node) => void,
|
14 | onBeforeElChildrenUpdated?: (fromEl: HTMLElement, toEl: HTMLElement) => boolean,
|
15 | childrenOnly?: boolean
|
16 | }
|
17 |
|
18 | namespace morphdom { }
|
19 |
|
20 | function morphdom(
|
21 | fromNode: Node,
|
22 | toNode: Node | string,
|
23 | options?: MorphDomOptions
|
24 | ): void;
|
25 |
|
26 | export = morphdom;
|
27 | }
|