@shopify/useful-types
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -10,1 +10,16 @@ import { ComponentType } from 'react'; | ||
}; | ||
export declare type IfEmptyObject<Object, If, Else = never> = keyof Object extends { | ||
length: 0; | ||
} ? If : Else; | ||
export declare type IfAllOptionalKeys<Object, If, Else = never> = NonOptionalKeys<Object> extends { | ||
length: 0; | ||
} ? If : Else; | ||
export declare type IfAllNullableKeys<Object, If, Else = never> = NonNullableKeys<Object> extends { | ||
length: 0; | ||
} ? If : Else; | ||
export declare type NonOptionalKeys<T> = { | ||
[K in keyof T]-?: undefined extends T[K] ? never : K; | ||
}[keyof T]; | ||
export declare type NonNullableKeys<T> = { | ||
[K in keyof T]-?: null extends T[K] ? never : K; | ||
}[keyof T]; |
{ | ||
"name": "@shopify/useful-types", | ||
"version": "1.1.1", | ||
"version": "1.1.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
5687
29