type-fest 4.3.3 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -56,5 +56,6 @@ export type UnionToIntersection<Union> = (
|
|
|
56
56
|
// Infer the `Intersection` type since TypeScript represents the positional
|
|
57
57
|
// arguments of unions of functions as an intersection of the union.
|
|
58
58
|
) extends ((mergedIntersection: infer Intersection) => void)
|
|
59
|
-
|
|
59
|
+
// The `& Union` is to allow indexing by the resulting type
|
|
60
|
+
? Intersection & Union
|
|
60
61
|
: never;
|