or.npm mount -D nuxt-typed-router@legacy.Setup.Sign up the module in the nuxt.config.ts, done!export default defineNuxtConfig( components: [' nuxt-typed-router'],. ).Example Use.pages/login. vue.When a course has no params determined, the params residential or commercial property will certainly certainly not even be actually offered as an alternative in the hub.router.push('/ login/bar')// Error!router.push( title: 'login', params: foo: 'bar')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Good!router.push( name: 'login')// Really good!pages/user/ [id] vue.When a path has a needed param described, getting through specifically to this path is going to throw an inaccuracy if you don't offer a params property or if you put a wrong param.router.push( title: 'user-id')// Mistake!router.push( title: 'user-id', params: bar: 'baz')// Inaccuracy!router.push('/ consumer')// Mistake!const id="ey7878".router.push('/ customer/$ id ')// Really good!router.push( name: 'user-id', params: id)// Excellent!router.push('/ consumer/$ i.d./ jewel')// Error!For solved courses, the params property will definitely be actually available as well as the right way typed.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Good!