1
0
Fork 0
mirror of https://github.com/archtechx/alpine-typescript.git synced 2025-12-11 22:34:03 +00:00

fix return value

This commit is contained in:
Samuel Štancl 2021-02-27 21:10:32 +01:00
parent a92f6f76e0
commit 3e645fb8c6

View file

@ -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 {