0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/packages/react-router/tests/RouterProvider.test-d.tsx
Christopher Horobin 167ac74445
feat: trailingSlashes option on the type level (#1509)
* feat: infer trailing slash option from router to use at the type level

- always will always add trailing slashes to the leaves of `to` prop
- never will always remove trailing slashes from the leaves of `to` prop
- preserve will allow both paths with or without slashes

* fix: allow branches but not when there is an index route
2024-04-25 20:05:34 +02:00

50 lines
1 KiB