From 8c47b197f000c5ee7e27651a62e991985739b72e Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Thu, 4 Nov 2021 22:38:50 +0100 Subject: [PATCH] fix: Component.component argument typings (#3148) --- js/src/common/Component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/common/Component.ts b/js/src/common/Component.ts index 3659eae66..a22959593 100644 --- a/js/src/common/Component.ts +++ b/js/src/common/Component.ts @@ -121,8 +121,8 @@ export default abstract class Component; + static component(attrs: Attrs = {}, children: Mithril.Children = null): Mithril.Vnode { + const componentAttrs = { ...attrs }; return m(this as any, componentAttrs, children); }