Skip to content

Statically typed links for Link returned from createNavigation #396

@amannn

Description

@amannn

Is your feature request related to a problem? Please describe.

Next.js now supports statically typed links, we should support this too in Link that is returned from createNavigation. Also rewrites/redirects should be supported now (needs to be validated).

Note that the Link that is returned from createNavigation with pathnames is already statically typed, this issue only applies if there are no pathnames.

Describe the solution you'd like

Compose existing types from Next.js for static typing to work

Describe alternatives you've considered

Leaving the routes untyped as string.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions