fix(packages/vue): fix generated icon declaration types for @lucide/vue (#4841)

This commit is contained in:
Karsa
2026-09-10 22:35:01 +02:00
committed by GitHub
parent bdf795a8e3
commit 5d592a96aa
+2 -2
View File
@@ -8,7 +8,7 @@ export default defineExportTemplate(
return `
import createLucideIcon from '../createLucideIcon';
import type { LucideIconData } from '../types';
import type { LucideIcon, LucideIconData } from '../types';
export const __iconData: LucideIconData = ${JSON.stringify(iconData)}
@@ -23,7 +23,7 @@ export const __iconData: LucideIconData = ${JSON.stringify(iconData)}
* @returns {FunctionalComponent} Vue component
* ${deprecated ? `@deprecated ${deprecationReason}` : ''}
*/
const ${componentName} = createLucideIcon(__iconData);
const ${componentName}: LucideIcon = createLucideIcon(__iconData);
export default ${componentName};
`;