From 6a160dc10f1cdffeb01ee45727a687b7bb61388a Mon Sep 17 00:00:00 2001 From: Isiah Meadows Date: Wed, 30 Dec 2015 20:42:57 -0500 Subject: [PATCH] Degenerify `MithrilRoutes` The routes type doesn't need to be parametrized. It's far too restricting and technically incorrect. --- mithril.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mithril.d.ts b/mithril.d.ts index 56d16901..646116de 100644 --- a/mithril.d.ts +++ b/mithril.d.ts @@ -250,7 +250,7 @@ declare module _mithril { ( rootElement: Element, defaultRoute: string, - routes: MithrilRoutes + routes: MithrilRoutes ): void; /** @@ -668,12 +668,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; } /**