Skip to content

Commit d5c953d

Browse files
committed
refactor: rename type
1 parent 4d88c18 commit d5c953d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/styled-components/src/createX.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { createCssFunction } from './createCssFunction'
66

77
type JSXElementKeys = keyof JSX.IntrinsicElements
88

9-
type SafeIntrinsicComponent<T extends keyof JSX.IntrinsicElements> = (
9+
type SafeIntrinsicElement<T extends keyof JSX.IntrinsicElements> = (
1010
props: Omit<JSX.IntrinsicElements[T], 'color'>,
1111
) => React.ReactElement<any, T>
1212

1313
export type X<TGen extends StyleGenerator> = {
1414
[Key in JSXElementKeys]: StyledComponent<
15-
SafeIntrinsicComponent<Key>,
15+
SafeIntrinsicElement<Key>,
1616
DefaultTheme,
1717
StyleGeneratorProps<TGen>,
1818
'color'

0 commit comments

Comments
 (0)