Comparing version 2.1.14 to 2.1.15
@@ -14,7 +14,9 @@ import { Properties as CSSProperties } from 'csstype'; | ||
// used when creating a styled component from a native HTML element | ||
<T extends keyof JSX.IntrinsicElements, P extends Object = {}>( | ||
<T extends keyof React.JSX.IntrinsicElements, P extends Object = {}>( | ||
tag: T, | ||
forwardRef?: ForwardRefFunction | ||
): Tagged< | ||
JSX.LibraryManagedAttributes<T, JSX.IntrinsicElements[T]> & P & Theme<DefaultTheme> | ||
React.JSX.LibraryManagedAttributes<T, React.JSX.IntrinsicElements[T]> & | ||
P & | ||
Theme<DefaultTheme> | ||
>; | ||
@@ -30,6 +32,8 @@ | ||
// component, such as when you want to style web components | ||
<P extends Object = {}>(tag: string): Tagged<P & Partial<JSX.ElementChildrenAttribute>>; | ||
<P extends Object = {}>(tag: string): Tagged< | ||
P & Partial<React.JSX.ElementChildrenAttribute> | ||
>; | ||
// used to create a styled component from a JSX element (both functional and class-based) | ||
<T extends JSX.Element | JSX.ElementClass, P extends Object = {}>( | ||
<T extends React.JSX.Element | React.JSX.ElementClass, P extends Object = {}>( | ||
tag: T, | ||
@@ -42,4 +46,5 @@ forwardRef?: ForwardRefFunction | ||
type BabelPluginTransformGooberStyledFunction = { | ||
[T in keyof JSX.IntrinsicElements]: Tagged< | ||
JSX.LibraryManagedAttributes<T, JSX.IntrinsicElements[T]> & Theme<DefaultTheme> | ||
[T in keyof React.JSX.IntrinsicElements]: Tagged< | ||
React.JSX.LibraryManagedAttributes<T, React.JSX.IntrinsicElements[T]> & | ||
Theme<DefaultTheme> | ||
>; | ||
@@ -46,0 +51,0 @@ }; |
{ | ||
"name": "goober", | ||
"version": "2.1.14", | ||
"version": "2.1.15", | ||
"description": "A less than 1KB css-in-js solution", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
117417
1919