Skip to content

Commit dc357f9

Browse files
fix lucide direct import types (unsafely)
1 parent 5345bd3 commit dc357f9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/@types/lucide-react-icons.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
declare module "lucide-react/dist/esm/icons/*" {
2+
import { type LucideIcon } from "lucide-react";
3+
const Icon: LucideIcon;
4+
export default Icon;
5+
}
6+
7+
declare module "lucide-react" {
8+
import React from "react";
9+
export interface LucideIcon
10+
extends React.ForwardRefExoticComponent<
11+
React.PropsWithoutRef<React.SVGProps<SVGSVGElement>> & {
12+
title?: string;
13+
size?: string | number;
14+
absoluteStrokeWidth?: boolean;
15+
} & React.RefAttributes<SVGSVGElement>
16+
> {}
17+
}

0 commit comments

Comments
 (0)