or.npm mount -D nuxt-typed-router@legacy.Arrangement.Register the component in the nuxt.config.ts, carried out!export nonpayment defineNuxtConfig( components: [' nuxt-typed-router'],. ).Instance Usage.pages/login. vue.When a course has actually no params specified, the params home will definitely certainly not also be actually available as a choice in the modem.router.push('/ login/bar')// Inaccuracy!router.push( label: 'login', params: foo: 'club')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Really good!router.push( label: 'login')// Excellent!pages/user/ [id] vue.When a route has actually a demanded param described, browsing specifically to this path will definitely throw a mistake if you don't supply a params property or even if you place an inappropriate param.router.push( label: 'user-id')// Mistake!router.push( title: 'user-id', params: pub: 'baz')// Inaccuracy!router.push('/ individual')// Error!const i.d.="ey7878".router.push('/ customer/$ i.d. ')// Good!router.push( label: 'user-id', params: i.d.)// Good!router.push('/ individual/$ id/ jewel')// Error!For resolved options, the params home will definitely be actually offered and the right way typed.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Excellent!