or even.npm put up -D nuxt-typed-router@legacy.Configuration.Sign up the element in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When a route has actually no params specified, the params property is going to certainly not even be actually accessible as a choice in the hub.router.push('/ login/bar')// Error!router.push( name: 'login', params: foo: 'club')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Really good!router.push( title: 'login')// Good!pages/user/ [id] vue.When a path has actually a required param specified, browsing specifically to this path will toss a mistake if you do not offer a params building or even if you place an incorrect param.router.push( label: 'user-id')// Mistake!router.push( label: 'user-id', params: club: 'baz')// Mistake!router.push('/ consumer')// Mistake!const i.d.="ey7878".router.push('/ customer/$ i.d. ')// Excellent!router.push( label: 'user-id', params: id)// Great!router.push('/ customer/$ id/ baguette')// Mistake!For settled options, the params residential property will be actually accessible and appropriately typed.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Really good!