We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
<component>
is
1 parent c022037 commit 028f573Copy full SHA for 028f573
packages/language-core/lib/codegen/template/element.ts
@@ -131,7 +131,7 @@ export function* generateComponent(
131
);
132
}
133
yield `)${endOfLine}`;
134
- } else if (!isComponentTag) {
+ } else {
135
yield `const ${componentOriginalVar} = ({} as __VLS_WithComponent<'${
136
getCanonicalComponentName(node.tag)
137
}', __VLS_LocalComponents, `;
@@ -186,8 +186,6 @@ export function* generateComponent(
186
187
yield `${endOfLine}`;
188
189
- } else {
190
- yield `const ${componentOriginalVar} = {} as any${endOfLine}`;
191
192
193
yield `// @ts-ignore${newLine}`;
0 commit comments