We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb5f8ca commit 83a56c9Copy full SHA for 83a56c9
packages/language-core/lib/codegen/script/scriptSetup.ts
@@ -71,7 +71,7 @@ export function* generateScriptSetup(
71
+ ` attrs: any,${newLine}`
72
+ ` slots: __VLS_Slots,${newLine}`
73
+ ` emit: ${emitTypes.length ? emitTypes.join(' & ') : `{}`},${newLine}`
74
- + ` __typeEmits: __VLS_Emit,${newLine}`
+ + ` __typeEmits?: __VLS_Emit,${newLine}`
75
+ `}${endOfLine}`;
76
yield `})(),${newLine}`; // __VLS_setup = (async () => {
77
yield `) => ({} as import('${options.vueCompilerOptions.lib}').VNode & { __ctx?: Awaited<typeof __VLS_setup> }))`;
0 commit comments