We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d88c18 commit d5c953dCopy full SHA for d5c953d
packages/styled-components/src/createX.ts
@@ -6,13 +6,13 @@ import { createCssFunction } from './createCssFunction'
6
7
type JSXElementKeys = keyof JSX.IntrinsicElements
8
9
-type SafeIntrinsicComponent<T extends keyof JSX.IntrinsicElements> = (
+type SafeIntrinsicElement<T extends keyof JSX.IntrinsicElements> = (
10
props: Omit<JSX.IntrinsicElements[T], 'color'>,
11
) => React.ReactElement<any, T>
12
13
export type X<TGen extends StyleGenerator> = {
14
[Key in JSXElementKeys]: StyledComponent<
15
- SafeIntrinsicComponent<Key>,
+ SafeIntrinsicElement<Key>,
16
DefaultTheme,
17
StyleGeneratorProps<TGen>,
18
'color'
0 commit comments