Updating typescript redraw definition to allow m.redraw.strategy
This commit is contained in:
parent
5b71027896
commit
03fe9c4edc
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;
|
trust(html: string): String;
|
||||||
render(rootElement: Element, children?: any): void;
|
render(rootElement: Element, children?: any): void;
|
||||||
render(rootElement: HTMLDocument, children?: any): void;
|
render(rootElement: HTMLDocument, children?: any): void;
|
||||||
redraw(): void;
|
redraw: {
|
||||||
|
(): void;
|
||||||
|
strategy(key: string);
|
||||||
|
};
|
||||||
route: {
|
route: {
|
||||||
(rootElement:Element, defaultRoute:string, routes:{ [key: string]: MithrilModule }): void
|
(rootElement:Element, defaultRoute:string, routes:{ [key: string]: MithrilModule }): void
|
||||||
(element: Element, isInitialized: boolean): void;
|
(element: Element, isInitialized: boolean): void;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue