@tanstack/router-core 1.128.7 → 1.129.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/dist/cjs/global.d.cts +7 -0
- package/dist/cjs/index.d.cts +1 -0
- package/dist/cjs/route.cjs.map +1 -1
- package/dist/cjs/route.d.cts +2 -2
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/router.d.cts +0 -5
- package/dist/esm/global.d.ts +7 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/route.d.ts +2 -2
- package/dist/esm/route.js.map +1 -1
- package/dist/esm/router.d.ts +0 -5
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/global.ts +9 -0
- package/src/index.ts +2 -0
- package/src/route.ts +2 -2
- package/src/router.ts +0 -6
package/package.json
CHANGED
package/src/global.ts
ADDED
package/src/index.ts
CHANGED
package/src/route.ts
CHANGED
|
@@ -1317,8 +1317,8 @@ export type ErrorRouteProps = {
|
|
|
1317
1317
|
reset: () => void
|
|
1318
1318
|
}
|
|
1319
1319
|
|
|
1320
|
-
export type ErrorComponentProps = {
|
|
1321
|
-
error:
|
|
1320
|
+
export type ErrorComponentProps<TError = Error> = {
|
|
1321
|
+
error: TError
|
|
1322
1322
|
info?: { componentStack: string }
|
|
1323
1323
|
reset: () => void
|
|
1324
1324
|
}
|
package/src/router.ts
CHANGED
|
@@ -86,12 +86,6 @@ import type { AnySchema, AnyValidator } from './validators'
|
|
|
86
86
|
import type { NavigateOptions, ResolveRelativePath, ToOptions } from './link'
|
|
87
87
|
import type { NotFoundError } from './not-found'
|
|
88
88
|
|
|
89
|
-
declare global {
|
|
90
|
-
interface Window {
|
|
91
|
-
__TSR_ROUTER__?: AnyRouter
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
89
|
export type ControllablePromise<T = any> = Promise<T> & {
|
|
96
90
|
resolve: (value: T) => void
|
|
97
91
|
reject: (value?: any) => void
|