Merge pull request #919 from lhorie/isiahmeadows-definition-fix

Degenerify `MithrilRoutes`
This commit is contained in:
Isiah Meadows 2015-12-30 20:47:27 -05:00
commit 24db992008

6
mithril.d.ts vendored
View file

@ -250,7 +250,7 @@ declare module _mithril {
<T extends MithrilController>( <T extends MithrilController>(
rootElement: Element, rootElement: Element,
defaultRoute: string, defaultRoute: string,
routes: MithrilRoutes<T> routes: MithrilRoutes
): void; ): void;
/** /**
@ -668,12 +668,12 @@ declare module _mithril {
/** /**
* This represents a key-value mapping linking routes to components. * This represents a key-value mapping linking routes to components.
*/ */
interface MithrilRoutes<T extends MithrilController> { interface MithrilRoutes {
/** /**
* The key represents the route. The value represents the corresponding * The key represents the route. The value represents the corresponding
* component. * component.
*/ */
[key: string]: MithrilComponent<T>; [key: string]: MithrilComponent<MithrilController>;
} }
/** /**