or.npm set up -D nuxt-typed-router@legacy.Arrangement.Register the component in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Instance Utilization.pages/login. vue.When a course has actually no params described, the params residential or commercial property will not even be actually readily available as an alternative in the router.router.push('/ login/bar')// Inaccuracy!router.push( label: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Good!router.push( label: 'login')// Excellent!pages/user/ [i.d.] vue.When a path has a called for param determined, browsing exactly to this path will toss a mistake if you don't deliver a params residential property or even if you put a wrong param.router.push( name: 'user-id')// Inaccuracy!router.push( title: 'user-id', params: pub: 'baz')// Mistake!router.push('/ customer')// Mistake!const i.d.="ey7878".router.push('/ user/$ i.d. ')// Great!router.push( name: 'user-id', params: id)// Excellent!router.push('/ user/$ id/ jewel')// Inaccuracy!For addressed options, the params residential property will definitely be actually accessible as well as accurately typed.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Great!