From 49f595afe72cbce1ff3540337189bbd1a9337459 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Fri, 28 Jun 2024 16:37:09 +0300 Subject: [PATCH] build: fix `IconProps` type definition to be compatible with the latest `@types/react` --- src/lib/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/types.ts b/src/lib/types.ts index 621f480d7b..6bbdd90943 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -1,4 +1,4 @@ -import { ComponentPropsWithRef } from "react"; +import { ComponentPropsWithoutRef, RefAttributes } from "react"; export type IconWeight = | "thin" @@ -8,7 +8,7 @@ export type IconWeight = | "fill" | "duotone"; -export interface IconProps extends ComponentPropsWithRef<"svg"> { +export interface IconProps extends ComponentPropsWithoutRef<"svg">, RefAttributes { alt?: string; color?: string; size?: string | number;