@shopify/useful-types
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -9,12 +9,12 @@ import { ComponentType, HTMLAttributes } from 'react'; | ||
export declare type DeepPartial<T> = { | ||
[P in keyof T]?: T[P] extends Array<infer U> ? Array<DeepPartial<U>> : T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : DeepPartial<T[P]>; | ||
[P in keyof T]?: T[P] extends (infer U)[] ? DeepPartial<U>[] : T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : DeepPartial<T[P]>; | ||
}; | ||
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 { | ||
export declare type IfEmptyObject<Obj, If, Else = never> = keyof Obj extends { | ||
length: 0; | ||
} ? If : Else; | ||
export declare type IfAllOptionalKeys<Object, If, Else = never> = NonOptionalKeys<Object> extends { | ||
export declare type IfAllOptionalKeys<Obj, If, Else = never> = NonOptionalKeys<Obj> extends { | ||
length: 0; | ||
} ? If : Else; | ||
export declare type IfAllNullableKeys<Object, If, Else = never> = NonNullableKeys<Object> extends { | ||
export declare type IfAllNullableKeys<Obj, If, Else = never> = NonNullableKeys<Obj> extends { | ||
length: 0; | ||
@@ -21,0 +21,0 @@ } ? If : Else; |
{ | ||
"name": "@shopify/useful-types", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"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
5975