You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Make the functions from createSharedPathnamesNavigation (imported from next-intl/navigation) type safe when experimental.typedRoutes is enabled (in next.config.js).
Is your feature request related to a problem? Please describe.
Make the functions from
createSharedPathnamesNavigation
(imported fromnext-intl/navigation
) type safe whenexperimental.typedRoutes
is enabled (innext.config.js
).Next.js documentation: https://nextjs.org/docs/app/building-your-application/configuring/typescript#statically-typed-links
Describe the solution you'd like
Type Safe routing with:
I've used the same repo for the bug reproduction for #1402 but created another branch to try enabling
experimental.typedRoutes
: https://github.com/theoludwig/next-intl-bug-repro-relative-time-now/tree/typed-routesIdeally we should be able to use the types generated in
.next/types/link.d.ts
, but ignore the slug[locale]
, and have type safe links, for example:Describe alternatives you've considered
No type-safety for links.
The text was updated successfully, but these errors were encountered: