or.npm install -D nuxt-typed-router@legacy.Configuration.Register the component in the nuxt.config.ts, carried out!export default defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When a route has actually no params determined, the params property will certainly certainly not even be available as an alternative in the router.router.push('/ login/bar')// Mistake!router.push( name: 'login', params: foo: 'bar')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Great!router.push( name: 'login')// Really good!pages/user/ [i.d.] vue.When an option has a required param defined, getting through exactly to this route is going to toss a mistake if you do not offer a params building or if you place a wrong param.router.push( title: 'user-id')// Error!router.push( label: 'user-id', params: bar: 'baz')// Error!router.push('/ individual')// Error!const i.d.="ey7878".router.push('/ individual/$ i.d. ')// Excellent!router.push( label: 'user-id', params: i.d.)// Great!router.push('/ customer/$ i.d./ baguette')// Error!For dealt with routes, the params home will certainly be actually on call and the right way typed.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Good!