or.npm set up -D nuxt-typed-router@legacy.Configuration.Sign up the module in the nuxt.config.ts, carried out!export nonpayment defineNuxtConfig( components: [' nuxt-typed-router'],. ).Instance Usage.pages/login. vue.When an option has no params specified, the params residential or commercial property will not also be actually accessible as an option in the router.router.push('/ login/bar')// Error!router.push( name: 'login', params: foo: 'pub')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Good!router.push( name: 'login')// Good!pages/user/ [id] vue.When a route has actually a required param specified, navigating exactly to this course is going to toss an inaccuracy if you don't deliver a params building or even if you put an inappropriate param.router.push( label: 'user-id')// Inaccuracy!router.push( name: 'user-id', params: pub: 'baz')// Error!router.push('/ customer')// Inaccuracy!const id="ey7878".router.push('/ user/$ id ')// Really good!router.push( title: 'user-id', params: id)// Excellent!router.push('/ consumer/$ id/ baguette')// Error!For resolved routes, the params home is going to be actually accessible and accurately typed in.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Really good!