@compiled/react 0.18.2 → 0.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,7 +27,7 @@ export type CSSPseudos = CSSPseudoElements | CSSPseudoClasses;
27
27
  * excess property check doesn't enable makers to circumvent the
28
28
  * system and pass in values they shouldn't.
29
29
  */
30
- export type CSSProperties = Readonly<CSS.Properties<(string & object) | number>>;
30
+ export type CSSProperties = Readonly<CSS.Properties<(string & NonNullable<unknown>) | number>>;
31
31
  /**
32
32
  * A stricter subset of the {@link CSSProperties} type that excludes
33
33
  * vendor and obsolete properties.
@@ -27,7 +27,7 @@ export type CSSPseudos = CSSPseudoElements | CSSPseudoClasses;
27
27
  * excess property check doesn't enable makers to circumvent the
28
28
  * system and pass in values they shouldn't.
29
29
  */
30
- export type CSSProperties = Readonly<CSS.Properties<(string & object) | number>>;
30
+ export type CSSProperties = Readonly<CSS.Properties<(string & NonNullable<unknown>) | number>>;
31
31
  /**
32
32
  * A stricter subset of the {@link CSSProperties} type that excludes
33
33
  * vendor and obsolete properties.
@@ -27,7 +27,7 @@ export type CSSPseudos = CSSPseudoElements | CSSPseudoClasses;
27
27
  * excess property check doesn't enable makers to circumvent the
28
28
  * system and pass in values they shouldn't.
29
29
  */
30
- export type CSSProperties = Readonly<CSS.Properties<(string & object) | number>>;
30
+ export type CSSProperties = Readonly<CSS.Properties<(string & NonNullable<unknown>) | number>>;
31
31
  /**
32
32
  * A stricter subset of the {@link CSSProperties} type that excludes
33
33
  * vendor and obsolete properties.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compiled/react",
3
- "version": "0.18.2",
3
+ "version": "0.18.3",
4
4
  "description": "A familiar and performant compile time CSS-in-JS library for React.",
5
5
  "keywords": [
6
6
  "compiled",
@@ -81,7 +81,7 @@
81
81
  "@testing-library/react": "^12.1.5",
82
82
  "@types/jsdom": "^16.2.15",
83
83
  "@types/react-dom": "^17.0.22",
84
- "expect-type": "^0.17.3",
84
+ "expect-type": "^0.20.0",
85
85
  "jsdom": "^19.0.0",
86
86
  "react": "^17.0.2",
87
87
  "react-dom": "^17.0.2"
package/src/types.ts CHANGED
@@ -104,7 +104,7 @@ export type CSSPseudos = CSSPseudoElements | CSSPseudoClasses;
104
104
  * excess property check doesn't enable makers to circumvent the
105
105
  * system and pass in values they shouldn't.
106
106
  */
107
- export type CSSProperties = Readonly<CSS.Properties<(string & object) | number>>;
107
+ export type CSSProperties = Readonly<CSS.Properties<(string & NonNullable<unknown>) | number>>;
108
108
 
109
109
  /**
110
110
  * A stricter subset of the {@link CSSProperties} type that excludes