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
Navigate to an unknown route isn't catch by typescript.
exportconstrouter=createRouter({routes: [{path: "/foo",component: ()=>import("./pages/foo.vue")},],history: createWebHistory(),});router.push("/bar");// <------ No type error
Proposed solution
Infer types so router is strongly typed with declared routes.
What problem is this solving
Navigate to an unknown route isn't catch by typescript.
Proposed solution
Infer types so
router
is strongly typed with declared routes.Describe alternatives you've considered
unplugin-vue-router but its file based routing.
The text was updated successfully, but these errors were encountered: