From 73cb5747b334121222595f20563d98beb47aa2e8 Mon Sep 17 00:00:00 2001 From: Joel Mueller Date: Sat, 24 Jan 2015 18:19:17 -0600 Subject: [PATCH] Better typing for MithrilModule Reflects that the view function can accept a controller and is required to return a MithrilVirtualElement. --- mithril/mithril.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mithril/mithril.d.ts b/mithril/mithril.d.ts index 525ded3aa..3b9690080 100644 --- a/mithril/mithril.d.ts +++ b/mithril/mithril.d.ts @@ -39,8 +39,8 @@ interface MithrilVirtualElement { } interface MithrilModule { - controller: Function; - view: Function; + controller: Function; + view: (controller?: any) => MithrilVirtualElement; } interface MithrilDeferred {