or even.npm install -D nuxt-typed-router@legacy.Setup.Sign up the element in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( components: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When a path has no params described, the params property will certainly certainly not even be actually on call as a choice in the modem.router.push('/ login/bar')// Error!router.push( name: 'login', params: foo: 'pub')// Mistake!router.push(" https://vuejsfeed.com/login")// Excellent!router.push( name: 'login')// Excellent!pages/user/ [id] vue.When a path has a called for param specified, navigating specifically to this path is going to throw a mistake if you don't give a params home or if you place an inappropriate param.router.push( title: 'user-id')// Error!router.push( name: 'user-id', params: bar: 'baz')// Mistake!router.push('/ customer')// Mistake!const id="ey7878".router.push('/ individual/$ i.d. ')// Good!router.push( label: 'user-id', params: i.d.)// Good!router.push('/ consumer/$ i.d./ jewel')// Error!For solved routes, the params home will certainly be on call and also accurately typed in.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Great!