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.
__VLS_Slots
1 parent c65e5a5 commit 9608709Copy full SHA for 9608709
packages/language-core/lib/codegen/script/scriptSetup.ts
@@ -115,7 +115,7 @@ export function* generateGeneric(
115
}
116
yield `) => void${endOfLine}`;
117
yield ` attrs: any${endOfLine}`;
118
- yield ` slots: ${names.Slots}${endOfLine}`;
+ yield ` slots: ${hasSlotsType(options) ? names.Slots : `{}`}${endOfLine}`;
119
yield ` emit: ${emitTypes.length ? emitTypes.join(` & `) : `{}`}${endOfLine}`;
120
yield `}${endOfLine}`;
121
yield `})(),${newLine}`; // __VLS_setup = (async () => {
0 commit comments