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.
1 parent f9f7dfd commit c308cc5Copy full SHA for c308cc5
src/commands/build.ts
@@ -178,8 +178,7 @@ import type { ${moduleImports.join(', ')} } from './module'
178
${appShims.length ? `declare module '#app' {\n${appShims.join('\n')}\n}\n` : ''}
179
${schemaShims.length ? `declare module '@nuxt/schema' {\n${schemaShims.join('\n')}\n}\n` : ''}
180
${schemaShims.length ? `declare module 'nuxt/schema' {\n${schemaShims.join('\n')}\n}\n` : ''}
181
-
182
-export type { ${typeExports[0].names.join(', ')} } from './module'
+${typeExports[0] ? `\nexport type { ${typeExports[0].names.join(', ')} } from './module'` : ''}
183
`
184
185
await fsp.writeFile(dtsFile, dtsContents, 'utf8')
0 commit comments