diff --git a/mithril.d.ts b/mithril.d.ts index a5c24a6e..2952d92a 100644 --- a/mithril.d.ts +++ b/mithril.d.ts @@ -431,10 +431,10 @@ declare module _mithril { * @param defaultRoute The route to start with. * @param routes A key-value mapping of pathname to controller. */ - ( + ( rootElement: Element, defaultRoute: string, - routes: MithrilRoutes + routes: MithrilRoutes ): void; /** @@ -447,7 +447,7 @@ declare module _mithril { * m("a[href='/dashboard/alicesmith']", {config: m.route}); * ``` */ - ( + ( element: Element, isInitialized: boolean, context?: MithrilContext, @@ -876,12 +876,12 @@ declare module _mithril { /** * This represents a key-value mapping linking routes to components. */ - interface MithrilRoutes { + interface MithrilRoutes { /** * The key represents the route. The value represents the corresponding * component. */ - [key: string]: MithrilComponent; + [key: string]: MithrilComponent; } /**