Skip to content

Commit

Permalink
fix: use __VLS_LocalComponents
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Dec 20, 2024
1 parent 6d45fb3 commit 10d69a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/language-core/lib/codegen/template/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function* generateComponent(
yield `)${endOfLine}`;
}
else if (!isComponentTag) {
yield `const ${var_originalComponent} = ({} as __VLS_WithComponent<'${getCanonicalComponentName(node.tag)}', typeof __VLS_localComponents, `;
yield `const ${var_originalComponent} = ({} as __VLS_WithComponent<'${getCanonicalComponentName(node.tag)}', __VLS_LocalComponents, `;
yield getPossibleOriginalComponentNames(node.tag, false)
.map(name => `'${name}'`)
.join(`, `);
Expand Down

0 comments on commit 10d69a9

Please sign in to comment.