@@ -31,13 +31,13 @@ export interface StyledComponent<
3131 withComponent < C extends React . ComponentClass < React . ComponentProps < C > > > (
3232 component : C
3333 ) : StyledComponent <
34- ComponentProps & PropsOf < C > ,
34+ ComponentProps & React . ComponentProps < C > ,
3535 { } ,
3636 { ref ?: React . Ref < InstanceType < C > > }
3737 >
3838 withComponent < C extends React . ComponentType < React . ComponentProps < C > > > (
3939 component : C
40- ) : StyledComponent < ComponentProps & PropsOf < C > >
40+ ) : StyledComponent < ComponentProps & React . ComponentProps < C > >
4141 withComponent < Tag extends keyof ReactJSXIntrinsicElements > (
4242 tag : Tag
4343 ) : StyledComponent < ComponentProps , ReactJSXIntrinsicElements [ Tag ] >
@@ -113,7 +113,7 @@ export interface CreateStyled {
113113 component : C ,
114114 options : FilteringStyledOptions < React . ComponentProps < C > , ForwardedProps >
115115 ) : CreateStyledComponent <
116- Pick < PropsOf < C > , ForwardedProps > & {
116+ Pick < React . ComponentProps < C > , ForwardedProps > & {
117117 theme ?: Theme
118118 } ,
119119 { } ,
@@ -126,7 +126,7 @@ export interface CreateStyled {
126126 component : C ,
127127 options ?: StyledOptions < React . ComponentProps < C > >
128128 ) : CreateStyledComponent <
129- PropsOf < C > & {
129+ React . ComponentProps < C > & {
130130 theme ?: Theme
131131 } ,
132132 { } ,
@@ -143,7 +143,7 @@ export interface CreateStyled {
143143 component : C ,
144144 options : FilteringStyledOptions < React . ComponentProps < C > , ForwardedProps >
145145 ) : CreateStyledComponent <
146- Pick < PropsOf < C > , ForwardedProps > & {
146+ Pick < React . ComponentProps < C > , ForwardedProps > & {
147147 theme ?: Theme
148148 }
149149 >
@@ -152,7 +152,7 @@ export interface CreateStyled {
152152 component : C ,
153153 options ?: StyledOptions < React . ComponentProps < C > >
154154 ) : CreateStyledComponent <
155- PropsOf < C > & {
155+ React . ComponentProps < C > & {
156156 theme ?: Theme
157157 }
158158 >
@@ -182,7 +182,6 @@ export interface CreateStyled {
182182}
183183
184184export type ElementType = React . ElementType & {
185- defaultProps ?: Partial < any >
186185 __emotion_real ?: ElementType
187186 __emotion_base ?: ElementType
188187 __emotion_styles ?: Interpolation < Theme > [ ]
0 commit comments