Merge pull request #373 from blacha/next
Updating typescript redraw definition to allow m.redraw.strategy
This commit is contained in:
commit
631e01c425
1 changed files with 4 additions and 1 deletions
5
mithril.d.ts
vendored
5
mithril.d.ts
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue