Replies: 1 comment
-
Types are generated from the file system and not the routes array you pass to createRouter, so sadly this doesn't seem possible at the moment. On the other hand, you could maybe use the definePage macro on all your pages instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wanna migrate an existing project, and do not change any behaviors. I just want to have types linting for
vue-router
. I came here fromvue-router
so I thought it just provide typed routes feature for vue-router. But I found more features like File-based Routing... I'm worried that this will cause breaking changes to the project so I open this discussion.Besides that, how about adding a solution in the document of vue-route as well?
Beta Was this translation helpful? Give feedback.
All reactions