or.npm set up -D nuxt-typed-router@legacy.Configuration.Sign up the module in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Consumption.pages/login. vue.When an option has no params specified, the params home will certainly certainly not also be on call as an option in the hub.router.push('/ login/bar')// Mistake!router.push( label: 'login', params: foo: 'pub')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Good!router.push( title: 'login')// Good!pages/user/ [id] vue.When a course has a needed param defined, browsing exactly to this route will definitely toss a mistake if you do not offer a params residential or commercial property or even if you put a wrong param.router.push( name: 'user-id')// Error!router.push( label: 'user-id', params: pub: 'baz')// Error!router.push('/ individual')// Error!const i.d.="ey7878".router.push('/ customer/$ i.d. ')// Good!router.push( label: 'user-id', params: id)// Excellent!router.push('/ customer/$ id/ baguette')// Error!For resolved paths, the params residential or commercial property is going to be on call and accurately keyed.const path = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Excellent!