From 477a8668a4975597bfc52dc0b3f07abb9971c5f2 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Tue, 31 Mar 2020 11:41:38 -0500 Subject: [PATCH] [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. --- types/styled-system__css/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/styled-system__css/index.d.ts b/types/styled-system__css/index.d.ts index c23302734a..03abc96dd3 100644 --- a/types/styled-system__css/index.d.ts +++ b/types/styled-system__css/index.d.ts @@ -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; }