or.npm put in -D nuxt-typed-router@legacy.Configuration.Sign up the module in the nuxt.config.ts, done!export default defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Use.pages/login. vue.When a path has no params described, the params residential or commercial property is going to certainly not also be actually on call as an alternative in the hub.router.push('/ login/bar')// Inaccuracy!router.push( name: 'login', params: foo: 'bar')// Mistake!router.push(" https://vuejsfeed.com/login")// Really good!router.push( title: 'login')// Excellent!pages/user/ [i.d.] vue.When a course has actually a demanded param determined, navigating precisely to this option will toss a mistake if you don't give a params residential property or even if you put a wrong param.router.push( name: 'user-id')// Mistake!router.push( name: 'user-id', params: pub: 'baz')// Error!router.push('/ individual')// Inaccuracy!const id="ey7878".router.push('/ individual/$ id ')// Good!router.push( name: 'user-id', params: i.d.)// Really good!router.push('/ user/$ id/ baguette')// Mistake!For fixed courses, the params property will be accessible and also appropriately keyed.const path = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Excellent!