@alloc/types
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -61,3 +61,5 @@ /** Try to simplify `&` out of an object type */ | ||
K | ||
> | ||
> extends infer Result | ||
? Result & object | ||
: never | ||
@@ -70,3 +72,6 @@ export type StringKeys<T> = string & keyof T | ||
/** Merge all object types in a given union. Property types are unioned. */ | ||
export type CombineObjects<T> = UnionPick<T, AllKeys<T>> | ||
// export type CombineObjects<T> = UnionPick<T, AllKeys<T>> | ||
export type CombineObjects<T> = UnionPick<T, AllKeys<T>> extends infer Result | ||
? Result & object | ||
: never | ||
@@ -73,0 +78,0 @@ /** |
{ | ||
"name": "@alloc/types", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"types": "index.d.ts", | ||
@@ -5,0 +5,0 @@ "files": [ |
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
5691
101