File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/language-core/lib/codegen/script Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ function* generateComponentProps(
370
370
) : Generator < Code > {
371
371
if ( scriptSetup . generic ) {
372
372
yield `const __VLS_fnComponent = (await import('${ options . vueCompilerOptions . lib } ')).defineComponent({${ newLine } ` ;
373
-
373
+
374
374
if ( scriptSetupRanges . defineProps ?. arg ) {
375
375
yield `props: ` ;
376
376
yield generateSfcBlockSection (
@@ -381,11 +381,11 @@ function* generateComponentProps(
381
381
) ;
382
382
yield `,${ newLine } ` ;
383
383
}
384
-
384
+
385
385
yield * generateEmitsOption ( options , scriptSetupRanges ) ;
386
-
386
+
387
387
yield `})${ endOfLine } ` ;
388
-
388
+
389
389
yield `type __VLS_BuiltInPublicProps = ${ options . vueCompilerOptions . target >= 3.4
390
390
? `import('${ options . vueCompilerOptions . lib } ').PublicProps`
391
391
: options . vueCompilerOptions . target >= 3.0
@@ -395,7 +395,7 @@ function* generateComponentProps(
395
395
: `globalThis.JSX.IntrinsicAttributes`
396
396
} `;
397
397
yield endOfLine ;
398
-
398
+
399
399
yield `type __VLS_OwnProps = ` ;
400
400
yield `${ ctx . localTypes . OmitKeepDiscriminatedUnion } <InstanceType<typeof __VLS_fnComponent>['$props'], keyof __VLS_BuiltInPublicProps>` ;
401
401
yield endOfLine ;
You can’t perform that action at this time.
0 commit comments