or.npm put up -D nuxt-typed-router@legacy.Configuration.Register the module in the nuxt.config.ts, performed!export default defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Instance Use.pages/login. vue.When a route has no params determined, the params residential or commercial property will certainly certainly not even be actually offered as an option in the hub.router.push('/ login/bar')// Inaccuracy!router.push( title: 'login', params: foo: 'bar')// Mistake!router.push(" https://vuejsfeed.com/login")// Good!router.push( name: 'login')// Excellent!pages/user/ [i.d.] vue.When a path has a demanded param determined, navigating precisely to this route is going to throw an error if you don't supply a params property or even if you put an inappropriate param.router.push( name: 'user-id')// Mistake!router.push( title: 'user-id', params: bar: 'baz')// Mistake!router.push('/ user')// Error!const id="ey7878".router.push('/ customer/$ id ')// Great!router.push( title: 'user-id', params: i.d.)// Great!router.push('/ consumer/$ id/ baguette')// Mistake!For addressed options, the params building will be actually offered and also properly typed in.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Great!