From 3d0c8691c9aa2578e5b7834633063f3cc6659dc6 Mon Sep 17 00:00:00 2001 From: Sun Xiaoran Date: Mon, 23 Oct 2023 14:24:05 -0500 Subject: [PATCH] fix: jsx type for icons in vue 3 (#1617) --- packages/lucide-vue-next/scripts/buildTypes.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/lucide-vue-next/scripts/buildTypes.mjs b/packages/lucide-vue-next/scripts/buildTypes.mjs index d3dd9f69c5..028f7d29ed 100644 --- a/packages/lucide-vue-next/scripts/buildTypes.mjs +++ b/packages/lucide-vue-next/scripts/buildTypes.mjs @@ -24,7 +24,7 @@ const TYPES_FILE = 'lucide-vue-next.d.ts'; // Generates header of d.ts file include some types and functions let declarationFileContent = `\ -import { SVGAttributes, FunctionalComponent } from 'vue'; +import { SVGAttributes, DefineComponent } from 'vue'; declare module 'lucide-vue-next' // Create interface extending SVGAttributes @@ -34,7 +34,7 @@ export interface SVGProps extends Partial { absoluteStrokeWidth?: boolean } -export type Icon = (props: SVGProps) => FunctionalComponent +export type Icon = DefineComponent // Generated icons `;