or.npm put in -D nuxt-typed-router@legacy.Arrangement.Register the module in the nuxt.config.ts, done!export default defineNuxtConfig( components: [' nuxt-typed-router'],. ).Example Use.pages/login. vue.When a path has no params defined, the params residential property will definitely certainly not also be accessible as a choice in the hub.router.push('/ login/bar')// Inaccuracy!router.push( title: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Good!router.push( title: 'login')// Really good!pages/user/ [i.d.] vue.When an option has a demanded param determined, getting through precisely to this option will definitely toss an error if you don't provide a params residential property or if you put an inappropriate param.router.push( title: 'user-id')// Mistake!router.push( name: 'user-id', params: pub: 'baz')// Error!router.push('/ individual')// Error!const i.d.="ey7878".router.push('/ customer/$ i.d. ')// Great!router.push( label: 'user-id', params: i.d.)// Excellent!router.push('/ consumer/$ id/ baguette')// Error!For fixed options, the params property will be actually on call as well as the right way keyed in.const route = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Really good!