Skip to content

Commit

Permalink
build: fix IconProps type definition
Browse files Browse the repository at this point in the history
to be compatible with the latest `@types/react`
  • Loading branch information
nklhtv authored and rektdeckard committed Jun 29, 2024
1 parent 61d31d0 commit a9c5de5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ComponentPropsWithRef } from "react";
import { ComponentPropsWithoutRef, RefAttributes } from "react";

export type IconWeight =
| "thin"
Expand All @@ -8,7 +8,7 @@ export type IconWeight =
| "fill"
| "duotone";

export interface IconProps extends ComponentPropsWithRef<"svg"> {
export interface IconProps extends ComponentPropsWithoutRef<"svg">, RefAttributes<SVGSVGElement> {
alt?: string;
color?: string;
size?: string | number;
Expand Down

0 comments on commit a9c5de5

Please sign in to comment.