or.npm set up -D nuxt-typed-router@legacy.Arrangement.Sign up the module in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( components: [' nuxt-typed-router'],. ).Instance Utilization.pages/login. vue.When an option has no params described, the params building will definitely certainly not also be actually offered as an alternative in the router.router.push('/ login/bar')// Inaccuracy!router.push( name: 'login', params: foo: 'bar')// Mistake!router.push(" https://vuejsfeed.com/login")// Really good!router.push( label: 'login')// Excellent!pages/user/ [i.d.] vue.When a path has a called for param determined, browsing specifically to this course will toss a mistake if you do not deliver a params home or even if you put an inappropriate param.router.push( name: 'user-id')// Mistake!router.push( label: 'user-id', params: pub: 'baz')// Inaccuracy!router.push('/ individual')// Mistake!const i.d.="ey7878".router.push('/ user/$ i.d. ')// Great!router.push( title: 'user-id', params: id)// Excellent!router.push('/ consumer/$ i.d./ jewel')// Error!For dealt with options, the params building will be actually accessible and also properly typed in.const route = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Great!