or.npm put up -D nuxt-typed-router@legacy.Arrangement.Register the module in the nuxt.config.ts, carried out!export nonpayment defineNuxtConfig( components: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When an option has actually no params described, the params building is going to not also be available as a choice in the hub.router.push('/ login/bar')// Inaccuracy!router.push( name: 'login', params: foo: 'pub')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Great!router.push( label: 'login')// Excellent!pages/user/ [id] vue.When an option has actually a required param specified, browsing specifically to this option will definitely toss an inaccuracy if you don't give a params residential or commercial property or if you put a wrong param.router.push( title: 'user-id')// Mistake!router.push( title: 'user-id', params: club: 'baz')// Mistake!router.push('/ individual')// Mistake!const i.d.="ey7878".router.push('/ consumer/$ id ')// Great!router.push( label: 'user-id', params: id)// Great!router.push('/ customer/$ i.d./ baguette')// Error!For resolved paths, the params home is going to be actually on call and also appropriately typed in.const route = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Excellent!