mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +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:
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