or.npm mount -D nuxt-typed-router@legacy.Setup.Sign up the module in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Consumption.pages/login. vue.When a path has no params described, the params building will certainly not even be actually available as an alternative in the hub.router.push('/ login/bar')// Error!router.push( title: 'login', params: foo: 'bar')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Great!router.push( label: 'login')// Great!pages/user/ [id] vue.When a course has actually a demanded param determined, getting through exactly to this path will certainly throw a mistake if you don't deliver a params residential property or if you put an incorrect param.router.push( name: 'user-id')// Error!router.push( name: 'user-id', params: bar: 'baz')// Error!router.push('/ customer')// Mistake!const id="ey7878".router.push('/ customer/$ i.d. ')// Really good!router.push( name: 'user-id', params: id)// Excellent!router.push('/ individual/$ id/ baguette')// Error!For fixed courses, the params property will be offered as well as accurately typed in.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Excellent!