mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
[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:
Vendored
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user