Skip to content

Commit

Permalink
fix: jsx type for icons in vue 3 (#1617)
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt authored Oct 23, 2023
1 parent 47998b0 commit 3d0c869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lucide-vue-next/scripts/buildTypes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -34,7 +34,7 @@ export interface SVGProps extends Partial<SVGAttributes> {
absoluteStrokeWidth?: boolean
}
export type Icon = (props: SVGProps) => FunctionalComponent<SVGProps>
export type Icon = DefineComponent<SVGProps>
// Generated icons
`;
Expand Down

0 comments on commit 3d0c869

Please sign in to comment.