1
1
import { ComponentSelector , Interpolation } from '@emotion/serialize'
2
2
import { ReactJSXIntrinsicElements } from './jsx-namespace'
3
- import { PropsOf , Theme } from '@emotion/react'
3
+ import { Theme } from '@emotion/react'
4
4
5
5
/** Same as StyledOptions but shouldForwardProp must be a type guard */
6
6
export interface FilteringStyledOptions <
@@ -31,13 +31,13 @@ export interface StyledComponent<
31
31
withComponent < C extends React . ComponentClass < React . ComponentProps < C > > > (
32
32
component : C
33
33
) : StyledComponent <
34
- ComponentProps & PropsOf < C > ,
34
+ ComponentProps & React . ComponentProps < C > ,
35
35
{ } ,
36
36
{ ref ?: React . Ref < InstanceType < C > > }
37
37
>
38
38
withComponent < C extends React . ComponentType < React . ComponentProps < C > > > (
39
39
component : C
40
- ) : StyledComponent < ComponentProps & PropsOf < C > >
40
+ ) : StyledComponent < ComponentProps & React . ComponentProps < C > >
41
41
withComponent < Tag extends keyof ReactJSXIntrinsicElements > (
42
42
tag : Tag
43
43
) : StyledComponent < ComponentProps , ReactJSXIntrinsicElements [ Tag ] >
@@ -113,7 +113,7 @@ export interface CreateStyled {
113
113
component : C ,
114
114
options : FilteringStyledOptions < React . ComponentProps < C > , ForwardedProps >
115
115
) : CreateStyledComponent <
116
- Pick < PropsOf < C > , ForwardedProps > & {
116
+ Pick < React . ComponentProps < C > , ForwardedProps > & {
117
117
theme ?: Theme
118
118
} ,
119
119
{ } ,
@@ -126,7 +126,7 @@ export interface CreateStyled {
126
126
component : C ,
127
127
options ?: StyledOptions < React . ComponentProps < C > >
128
128
) : CreateStyledComponent <
129
- PropsOf < C > & {
129
+ React . ComponentProps < C > & {
130
130
theme ?: Theme
131
131
} ,
132
132
{ } ,
@@ -143,7 +143,7 @@ export interface CreateStyled {
143
143
component : C ,
144
144
options : FilteringStyledOptions < React . ComponentProps < C > , ForwardedProps >
145
145
) : CreateStyledComponent <
146
- Pick < PropsOf < C > , ForwardedProps > & {
146
+ Pick < React . ComponentProps < C > , ForwardedProps > & {
147
147
theme ?: Theme
148
148
}
149
149
>
@@ -152,7 +152,7 @@ export interface CreateStyled {
152
152
component : C ,
153
153
options ?: StyledOptions < React . ComponentProps < C > >
154
154
) : CreateStyledComponent <
155
- PropsOf < C > & {
155
+ React . ComponentProps < C > & {
156
156
theme ?: Theme
157
157
}
158
158
>
@@ -182,7 +182,6 @@ export interface CreateStyled {
182
182
}
183
183
184
184
export type ElementType = React . ElementType & {
185
- defaultProps ?: Partial < any >
186
185
__emotion_real ?: ElementType
187
186
__emotion_base ?: ElementType
188
187
__emotion_styles ?: Interpolation < Theme > [ ]
0 commit comments