File tree 1 file changed +4
-3
lines changed
packages/language-core/lib/codegen/template
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -148,10 +148,11 @@ export function* generateComponent(
148
148
const camelizedTag = camelize ( node . tag ) ;
149
149
if ( variableNameRegex . test ( camelizedTag ) ) {
150
150
// renaming / find references support
151
+ yield `/** @type { [` ;
151
152
for ( const tagOffset of tagOffsets ) {
152
153
for ( const shouldCapitalize of ( node . tag [ 0 ] === node . tag [ 0 ] . toUpperCase ( ) ? [ false ] : [ true , false ] ) ) {
153
154
const expectName = shouldCapitalize ? capitalize ( camelizedTag ) : camelizedTag ;
154
- yield `__VLS_components.` ;
155
+ yield `typeof __VLS_components.` ;
155
156
yield * generateCamelized (
156
157
shouldCapitalize ? capitalize ( node . tag ) : node . tag ,
157
158
tagOffset ,
@@ -162,10 +163,10 @@ export function* generateComponent(
162
163
} ,
163
164
}
164
165
) ;
165
- yield `; ` ;
166
+ yield `, ` ;
166
167
}
167
168
}
168
- yield `${ newLine } ` ;
169
+ yield `] } */ ${ newLine } ` ;
169
170
// auto import support
170
171
if ( options . edited ) {
171
172
yield `// @ts-ignore${ newLine } ` ; // #2304
You can’t perform that action at this time.
0 commit comments