How to perserve typed routes with overrode router-link? #332
-
Hi, I'm not sure if this case qualifies for an issue. This is my first post so I'm sorry for further inconvenience (if any). TLDR; I needed to extend the default Despite that I've created a separate component - What's the correct way to keep TS support on overrode Thanks for your time and support. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 |
Beta Was this translation helpful? Give feedback.
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 withRouteLocationRaw
imported fromvue-router/auto
. I recommend you to check for the typed router functions likepush()
to get a better understanding of what types are typed. You can also check the client.d.ts file in the source code