@tanstack/router-core 1.133.19 → 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/src/router.ts CHANGED
@@ -797,7 +797,14 @@ export function defaultSerializeError(err: unknown) {
797
797
  }
798
798
  }
799
799
 
800
- export type TrailingSlashOption = 'always' | 'never' | 'preserve'
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