diff --git a/src/styled-component.tsx b/src/styled-component.tsx index a716c08..eb613e0 100644 --- a/src/styled-component.tsx +++ b/src/styled-component.tsx @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-explicit-any */ import * as React from "react"; import { styled } from "./styled"; import { StyledProps } from "./utils/styled"; @@ -6,26 +7,11 @@ export type StyledComponentProps
= StyledProps
& { component: React.ComponentType
;
};
-/**
- * This might cause issues in the future, but we provide an override of forwardRef
- * to provide better typing of our components
- */
-declare module "react" {
- // eslint-disable-next-line @typescript-eslint/ban-types
- function forwardRef & React.RefAttributes (
- { component, ...options }: StyledComponentProps ,
- ref: React.ForwardedRef & React.RefAttributes