We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88a44fc commit a68817aCopy full SHA for a68817a
.changeset/funny-camels-punch.md
@@ -0,0 +1,5 @@
1
+---
2
+'@compiled/react': patch
3
4
+
5
+Fix css function base types to have CSS property values available in intellisense.
packages/react/src/css/index.ts
@@ -36,7 +36,9 @@ export default function css<TProps = unknown>(
36
...interpolations: CssFunction<TProps>[]
37
): CSSProps<TProps>;
38
39
-export default function css<T = unknown>(styles: CssObject<T> | CssObject<T>[]): CSSProps<T>;
+export default function css<T = unknown>(
40
+ styles: CssObject<T> | CssObject<T>[] | CSSProps<T> | CSSProps<T>[]
41
+): CSSProps<T>;
42
43
export default function css<T = unknown>(
44
_styles: TemplateStringsArray | CssObject<T> | CssObject<T>[],
0 commit comments