From 64b9c818d6ae3f3049db06d80865b5acdca6a7ba 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) --- framework/core/js/src/common/Component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/core/js/src/common/Component.ts b/framework/core/js/src/common/Component.ts index 3659eae66..a22959593 100644 --- a/framework/core/js/src/common/Component.ts +++ b/framework/core/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); }