We have been using type-route for some time now and love it.
We have however just upgraded our project to typescript v5.5 and started getting these errors:
libs/client-shared/src/app/routes.ts:168:31 - error TS7056: The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.
168 export const { RouteProvider, useRoute, routes, session } = router;
~~~~~~~~
libs/client-shared/src/app/routes.ts:168:49 - error TS7056: The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.
168 export const { RouteProvider, useRoute, routes, session } = router;
This happens when attempting to destructure the router.

Any idea?
We have been using type-route for some time now and love it.
We have however just upgraded our project to typescript v5.5 and started getting these errors:
This happens when attempting to destructure the router.
Any idea?