or.npm install -D nuxt-typed-router@legacy.Configuration.Sign up the module in the nuxt.config.ts, carried out!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Use.pages/login. vue.When an option has actually no params specified, the params residential or commercial property will definitely not even be actually available as a possibility in the router.router.push('/ login/bar')// Mistake!router.push( label: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Excellent!router.push( name: 'login')// Good!pages/user/ [i.d.] vue.When an option has a required param specified, browsing specifically to this course will definitely throw an inaccuracy if you do not provide a params residential property or if you put an incorrect param.router.push( name: 'user-id')// Mistake!router.push( label: 'user-id', params: club: 'baz')// Inaccuracy!router.push('/ individual')// Mistake!const i.d.="ey7878".router.push('/ consumer/$ i.d. ')// Great!router.push( name: 'user-id', params: i.d.)// Good!router.push('/ individual/$ id/ baguette')// Inaccuracy!For dealt with courses, the params home will be actually available and also properly typed in.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Excellent!