or.npm put up -D nuxt-typed-router@legacy.Arrangement.Register the component in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Usage.pages/login. vue.When an option has no params described, the params building is going to not even be readily available as a possibility in the hub.router.push('/ login/bar')// Mistake!router.push( label: 'login', params: foo: 'pub')// Mistake!router.push(" https://vuejsfeed.com/login")// Excellent!router.push( name: 'login')// Really good!pages/user/ [id] vue.When an option has actually a demanded param specified, navigating specifically to this course will certainly throw a mistake if you don't deliver a params residential or commercial property or even if you place a wrong param.router.push( label: 'user-id')// Mistake!router.push( label: 'user-id', params: club: 'baz')// Inaccuracy!router.push('/ individual')// Mistake!const i.d.="ey7878".router.push('/ consumer/$ i.d. ')// Excellent!router.push( name: 'user-id', params: id)// Excellent!router.push('/ customer/$ i.d./ jewel')// Error!For fixed routes, the params residential property will definitely be accessible and also the right way typed in.const path = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Excellent!