or.npm put up -D nuxt-typed-router@legacy.Configuration.Sign up the module in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Instance Consumption.pages/login. vue.When an option has no params described, the params residential property will not even be actually available as an alternative in the router.router.push('/ login/bar')// Mistake!router.push( label: 'login', params: foo: 'bar')// Mistake!router.push(" https://vuejsfeed.com/login")// Really good!router.push( title: 'login')// Excellent!pages/user/ [id] vue.When a route has actually a demanded param determined, getting through precisely to this route will certainly toss an inaccuracy if you do not give a params home or even if you place a wrong param.router.push( title: 'user-id')// Error!router.push( name: 'user-id', params: club: 'baz')// Error!router.push('/ consumer')// Error!const i.d.="ey7878".router.push('/ individual/$ i.d. ')// Great!router.push( name: 'user-id', params: i.d.)// Good!router.push('/ consumer/$ i.d./ jewel')// Mistake!For dealt with options, the params residential property is going to be actually on call and also accurately typed.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Really good!