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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "type-fest",
3
- "version": "4.3.3",
3
+ "version": "4.4.0",
4
4
  "description": "A collection of essential TypeScript types",
5
5
  "license": "(MIT OR CC0-1.0)",
6
6
  "repository": "sindresorhus/type-fest",
@@ -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
- ? Intersection
59
+ // The `& Union` is to allow indexing by the resulting type
60
+ ? Intersection & Union
60
61
  : never;