diff --git a/src/runtime.types.ts b/src/runtime.types.ts index 6e8f9ad..f7cc0fd 100644 --- a/src/runtime.types.ts +++ b/src/runtime.types.ts @@ -6,6 +6,7 @@ import type { ComponentType, ForwardRefExoticComponent, FunctionComponent, + PropsWithoutRef, ReactElement, } from "react"; import type { @@ -84,15 +85,15 @@ interface StyledConfigurationObject< > { target: T; nativeStyleMapping?: T extends false - ? NativeStyleMapping> + ? NativeStyleMapping>> : NativeStyleMapping< ResolveDotPath>, - ComponentProps + PropsWithoutRef> >; /** @deprecated Please use nativeStyleMapping */ nativeStyleToProp?: NativeStyleMapping< ResolveDotPath>, - ComponentProps + PropsWithoutRef> >; } @@ -119,7 +120,7 @@ export type ReactComponent

= | ForwardRefExoticComponent

; export type ComponentPropsDotNotation = DotNotation< - ComponentProps + PropsWithoutRef> >; /******************************** Styles ********************************/