or even.npm set up -D nuxt-typed-router@legacy.Arrangement.Register the module in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When a course has no params specified, the params residential or commercial property will not also be actually accessible as an option in the hub.router.push('/ login/bar')// Mistake!router.push( name: 'login', params: foo: 'bar')// Mistake!router.push(" https://vuejsfeed.com/login")// Great!router.push( label: 'login')// Good!pages/user/ [i.d.] vue.When a route has a demanded param specified, browsing specifically to this route will toss an inaccuracy if you don't supply a params residential or commercial property or even if you put a wrong param.router.push( label: 'user-id')// Inaccuracy!router.push( name: 'user-id', params: club: 'baz')// Mistake!router.push('/ user')// Inaccuracy!const i.d.="ey7878".router.push('/ user/$ i.d. ')// Excellent!router.push( name: 'user-id', params: id)// Great!router.push('/ customer/$ id/ baguette')// Mistake!For resolved options, the params home will definitely be actually offered and also the right way typed in.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Great!