Skip to content

Commit be80fe5

Browse files
author
arnoson
committed
chore: add generic param
1 parent c2a690a commit be80fe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mountComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const mountChildComponents = (el: HTMLElement) => {
1414
/** Mount a single component */
1515
export const mountComponent = (el: HTMLElement, isChild = false) => {
1616
const component = getComponent(el)
17-
const isInitialized = !!(el as SimpleElement).$component
17+
const isInitialized = !!(el as SimpleElement<any>).$component
1818

1919
if (!isInitialized && component) {
2020
const simpleEl = el as SimpleElement<typeof component>

0 commit comments

Comments
 (0)