@tanstack/router-core 1.133.18 → 1.133.20
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/index.cjs +1 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +1 -1
- package/dist/cjs/path.cjs +1 -1
- package/dist/cjs/path.cjs.map +1 -1
- package/dist/cjs/router.cjs +6 -0
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/cjs/router.d.cts +6 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/path.js +1 -1
- package/dist/esm/path.js.map +1 -1
- package/dist/esm/router.d.ts +6 -1
- package/dist/esm/router.js +7 -1
- package/dist/esm/router.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +2 -0
- package/src/path.ts +2 -2
- package/src/router.ts +8 -1
package/src/router.ts
CHANGED
|
@@ -797,7 +797,14 @@ export function defaultSerializeError(err: unknown) {
|
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
799
|
|
|
800
|
-
export
|
|
800
|
+
export const trailingSlashOptions = {
|
|
801
|
+
always: 'always',
|
|
802
|
+
never: 'never',
|
|
803
|
+
preserve: 'preserve',
|
|
804
|
+
} as const
|
|
805
|
+
|
|
806
|
+
export type TrailingSlashOption =
|
|
807
|
+
(typeof trailingSlashOptions)[keyof typeof trailingSlashOptions]
|
|
801
808
|
|
|
802
809
|
export function getLocationChangeInfo(routerState: {
|
|
803
810
|
resolvedLocation?: ParsedLocation
|