update docs about config: m.route

This commit is contained in:
Leo Horie 2015-04-22 20:32:39 -04:00
parent 51d073e414
commit f0b20da30a
3 changed files with 11 additions and 3 deletions

2
mithril.d.ts vendored
View file

@ -29,7 +29,7 @@ declare module _mithril {
<T extends MithrilController>(rootElement: HTMLDocument, defaultRoute: string, routes: MithrilRoutes<T>): void;
<T extends MithrilController>(rootElement: Element, defaultRoute: string, routes: MithrilRoutes<T>): void;
(element: Element, isInitialized: boolean): void;
(element: Element, isInitialized: boolean, context: Object, vdom: Object): void;
(path: string, params?: any, shouldReplaceHistory?: boolean): void;
(): string;