From 03fe9c4edc5a0ab9e06d4574d77aceae587e1cd8 Mon Sep 17 00:00:00 2001 From: Blayne Chard Date: Thu, 4 Dec 2014 10:59:05 +1300 Subject: [PATCH] Updating typescript redraw definition to allow m.redraw.strategy --- mithril.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mithril.d.ts b/mithril.d.ts index 717980c1..1b149107 100644 --- a/mithril.d.ts +++ b/mithril.d.ts @@ -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;