mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
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:
1 parent
e4b22c838c
commit
73cb5747b3
1 file changed
+2
-2
Vendored
+2
-2
@@ -39,8 +39,8 @@ interface MithrilVirtualElement {
|
||||
}
|
||||
|
||||
interface MithrilModule {
|
||||
controller: Function;
|
||||
view: Function;
|
||||
controller: Function;
|
||||
view: (controller?: any) => MithrilVirtualElement;
|
||||
}
|
||||
|
||||
interface MithrilDeferred<T> {
|
||||
|
||||
Reference in new issue
Block a user