Skip to content

How to perserve typed routes with overrode router-link? #332

Closed Answered by posva
aleksanderwalczuk asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not completely sure about what makes it work in one case but not the other. However, you should be able to type the to prop with RouteLocationRaw imported from vue-router/auto. I recommend you to check for the typed router functions like push() to get a better understanding of what types are typed. You can also check the client.d.ts file in the source code

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aleksanderwalczuk
Comment options

Answer selected by aleksanderwalczuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants