@tanstack/react-router 1.49.2 → 1.49.8

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/src/router.ts CHANGED
@@ -138,7 +138,6 @@ export type InferRouterContext<TRouteTree extends AnyRoute> =
138
138
  any,
139
139
  any,
140
140
  any,
141
- any,
142
141
  any
143
142
  >
144
143
  ? TRouterContext
package/src/utils.ts CHANGED
@@ -99,9 +99,9 @@ export type MergeUnion<TUnion> =
99
99
  | MergeUnionPrimitives<TUnion>
100
100
  | MergeUnionObject<TUnion>
101
101
 
102
- export type Constrain<T, TConstaint> =
102
+ export type Constrain<T, TConstaint, TDefault = TConstaint> =
103
103
  | (T extends TConstaint ? T : never)
104
- | TConstaint
104
+ | TDefault
105
105
 
106
106
  export function last<T>(arr: Array<T>) {
107
107
  return arr[arr.length - 1]