[styled-system/css] export all SystemStyleObject dependents (#43518)

The `StyleSystemObject` contains a few union types that aren't being publicly exported. This was causing errors when trying to use the `SystemStyleObject` in external projects.

Exporting the `CSSSelectorObject`, `VariantProperty`, and `UseThemeFunction` to allow external use of the `StyleSystemObject` type.
This commit is contained in:
Sam Rose
2020-03-31 09:41:38 -07:00
committed by GitHub
parent 86b81d0c1c
commit 477a8668a4
+3 -3
View File
@@ -54,7 +54,7 @@ interface CSSOthersObjectForCSSObject {
/**
* Map all nested selectors
*/
interface CSSSelectorObject {
export interface CSSSelectorObject {
[cssSelector: string]: SystemStyleObject;
}
@@ -364,7 +364,7 @@ export type SystemCssProperties = {
| SystemStyleObject;
};
interface VariantProperty {
export interface VariantProperty {
/**
* **`Variants`** can be useful for applying complex styles to a component based on a single prop.
*
@@ -389,7 +389,7 @@ interface VariantProperty {
variant: string;
}
interface UseThemeFunction {
export interface UseThemeFunction {
(theme: any): SystemStyleObject;
}