or.npm install -D nuxt-typed-router@legacy.Arrangement.Register the component in the nuxt.config.ts, performed!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Instance Consumption.pages/login. vue.When a route has actually no params determined, the params home will certainly certainly not also be offered as a possibility in the router.router.push('/ login/bar')// Mistake!router.push( label: 'login', params: foo: 'club')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Good!router.push( label: 'login')// Excellent!pages/user/ [i.d.] vue.When an option has a needed param determined, getting through specifically to this option will definitely toss an inaccuracy if you do not provide a params building or even if you put a wrong param.router.push( title: 'user-id')// Inaccuracy!router.push( name: 'user-id', params: bar: 'baz')// Error!router.push('/ individual')// Error!const i.d.="ey7878".router.push('/ individual/$ id ')// Excellent!router.push( label: 'user-id', params: i.d.)// Good!router.push('/ consumer/$ i.d./ baguette')// Error!For settled paths, the params residential property is going to be actually offered and accurately typed.const path = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Excellent!