mirror of
https://github.com/archtechx/alpine-typescript.git
synced 2025-12-12 06:44:03 +00:00
fix return value
This commit is contained in:
parent
a92f6f76e0
commit
3e645fb8c6
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue