From 3e645fb8c63c620c63114298b7f73961b5f52110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Sat, 27 Feb 2021 21:10:32 +0100 Subject: [PATCH] fix return value --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f46be7b..00fea54 100644 --- a/src/index.ts +++ b/src/index.ts @@ -39,8 +39,9 @@ export function component(name: string, component: Function = null): ComponentCo component = convertClassToAlpineConstructor(component); } - // @ts-ignore window.AlpineComponents[name] = component; + + return component as ComponentConstructor; } export function convertClassToAlpineConstructor(component: any): ComponentConstructor {