Merge pull request #373 from blacha/next

Updating typescript redraw definition to allow m.redraw.strategy
This commit is contained in:
Leo Horie 2014-12-08 10:08:27 -05:00
commit 631e01c425

5
mithril.d.ts vendored
View file

@ -9,7 +9,10 @@ interface MithrilStatic {
trust(html: string): String;
render(rootElement: Element, children?: any): void;
render(rootElement: HTMLDocument, children?: any): void;
redraw(): void;
redraw: {
(): void;
strategy(key: string);
};
route: {
(rootElement:Element, defaultRoute:string, routes:{ [key: string]: MithrilModule }): void
(element: Element, isInitialized: boolean): void;