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.
propTypes
1 parent 8697068 commit 426f8d5Copy full SHA for 426f8d5
packages/language-core/lib/codegen/script/scriptSetup.ts
@@ -89,7 +89,7 @@ export function* generateScriptSetup(
89
}
90
91
yield `return {} as {${newLine}`
92
- + ` props: ${ctx.localTypes.PrettifyLocal}<${propTypes.join(` & `)}> & ${
+ + ` props: ${propTypes.length ? `${ctx.localTypes.PrettifyLocal}<${propTypes.join(` & `)}> & ` : ``}${
93
options.vueCompilerOptions.target >= 3.4
94
? `import('${options.vueCompilerOptions.lib}').PublicProps`
95
: options.vueCompilerOptions.target >= 3
0 commit comments