Skip to content

Commit 83a56c9

Browse files
committed
fix: type
1 parent eb5f8ca commit 83a56c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/language-core/lib/codegen/script/scriptSetup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function* generateScriptSetup(
7171
+ ` attrs: any,${newLine}`
7272
+ ` slots: __VLS_Slots,${newLine}`
7373
+ ` emit: ${emitTypes.length ? emitTypes.join(' & ') : `{}`},${newLine}`
74-
+ ` __typeEmits: __VLS_Emit,${newLine}`
74+
+ ` __typeEmits?: __VLS_Emit,${newLine}`
7575
+ `}${endOfLine}`;
7676
yield `})(),${newLine}`; // __VLS_setup = (async () => {
7777
yield `) => ({} as import('${options.vueCompilerOptions.lib}').VNode & { __ctx?: Awaited<typeof __VLS_setup> }))`;

0 commit comments

Comments
 (0)