@shopify/useful-types
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -11,3 +11,3 @@ import { ComponentType, HTMLAttributes } from 'react'; | ||
}; | ||
export declare type Props<T> = T extends string ? HTMLAttributes<T> : T extends ComponentType<infer Props> ? Props : never; | ||
export declare type Props<T> = T extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[T] : T extends string ? HTMLAttributes<T> : T extends ComponentType<infer Props> ? Props : never; | ||
export declare type IfEmptyObject<Object, If, Else = never> = keyof Object extends { | ||
@@ -14,0 +14,0 @@ length: 0; |
{ | ||
"name": "@shopify/useful-types", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A few handy TypeScript types", |
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
6001