or.npm install -D nuxt-typed-router@legacy.Configuration.Sign up the module in the nuxt.config.ts, carried out!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Instance Utilization.pages/login. vue.When a route has no params described, the params building will definitely not also be readily available as an option in the router.router.push('/ login/bar')// Inaccuracy!router.push( name: 'login', params: foo: 'pub')// Mistake!router.push(" https://vuejsfeed.com/login")// Great!router.push( title: 'login')// Great!pages/user/ [i.d.] vue.When an option has a needed param determined, navigating exactly to this course will certainly throw a mistake if you do not give a params home or even if you place a wrong param.router.push( name: 'user-id')// Mistake!router.push( title: 'user-id', params: pub: 'baz')// Inaccuracy!router.push('/ customer')// Inaccuracy!const id="ey7878".router.push('/ consumer/$ i.d. ')// Good!router.push( label: 'user-id', params: id)// Good!router.push('/ customer/$ i.d./ baguette')// Error!For solved routes, the params residential or commercial property will be offered as well as appropriately typed.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Good!