Skip to content

Commit ecc01be

Browse files
Add TypeScript types for react-feather icons
Co-authored-by: rahul.chhabria <[email protected]>
1 parent e4b44a0 commit ecc01be

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/@types/react-feather.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
declare module 'react-feather' {
2+
import {FC, SVGAttributes} from 'react';
3+
4+
export interface FeatherIconProps extends SVGAttributes<SVGElement> {
5+
size?: number | string;
6+
}
7+
8+
// We declare commonly used icons; others can be added as needed
9+
export const Check: FC<FeatherIconProps>;
10+
export const Clipboard: FC<FeatherIconProps>;
11+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
12+
const icons: Record<string, FC<FeatherIconProps>>;
13+
export default icons;
14+
}

0 commit comments

Comments
 (0)