File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import type {
1010 StyledType ,
1111 StyledElementAttrsType ,
1212 StyledElementType ,
13- TagOrStyledElementType ,
13+ TagNameOrStyledElementType ,
1414 StyledElementPropsType
1515} from './types'
1616
@@ -41,12 +41,12 @@ const createStyled = (
4141 }
4242
4343 const styled = (
44- tagOrStyledElement : TagOrStyledElementType ,
44+ tagNameOrStyledElement : TagNameOrStyledElementType ,
4545 ownStyle : ComponentStyleType
4646 ) : StyledElementType => {
47- const { tagName, style} : StyledElementAttrsType = typeof tagOrStyledElement === 'string'
48- ? { tagName : tagOrStyledElement , style : { } }
49- : tagOrStyledElement
47+ const { tagName, style} : StyledElementAttrsType = typeof tagNameOrStyledElement === 'string'
48+ ? { tagName : tagNameOrStyledElement , style : { } }
49+ : tagNameOrStyledElement
5050
5151 const elementStyle = { ...style , ...ownStyle }
5252 const dynamicStyle = getDynamicStyles ( elementStyle )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export type StyledType = Function & {
1616}
1717export type StyledElementAttrsType = { tagName : string , style : ComponentStyleType }
1818export type StyledElementType = Function & StyledElementAttrsType
19- export type TagOrStyledElementType = string | StyledElementType
19+ export type TagNameOrStyledElementType = string | StyledElementType
2020export type StyledElementPropsType = {
2121 classes : Object ,
2222 children : ?any ,
You can’t perform that action at this time.
0 commit comments