Better typing for MithrilModule

Reflects that the view function can accept a controller and is required
to return a MithrilVirtualElement.
This commit is contained in:
Joel Mueller
2015-01-24 18:19:17 -06:00
parent e4b22c838c
commit 73cb5747b3
+2 -2
View File
@@ -39,8 +39,8 @@ interface MithrilVirtualElement {
}
interface MithrilModule {
controller: Function;
view: Function;
controller: Function;
view: (controller?: any) => MithrilVirtualElement;
}
interface MithrilDeferred<T> {