or.npm install -D nuxt-typed-router@legacy.Setup.Register the element in the nuxt.config.ts, done!export default defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When a course has no params described, the params home will certainly certainly not even be actually on call as a possibility in the hub.router.push('/ login/bar')// Error!router.push( label: 'login', params: foo: 'club')// Mistake!router.push(" https://vuejsfeed.com/login")// Really good!router.push( label: 'login')// Great!pages/user/ [i.d.] vue.When an option has a called for param determined, browsing exactly to this option will toss a mistake if you don't give a params residential or commercial property or even if you place a wrong param.router.push( title: 'user-id')// Inaccuracy!router.push( label: 'user-id', params: pub: 'baz')// Mistake!router.push('/ individual')// Inaccuracy!const i.d.="ey7878".router.push('/ user/$ id ')// Good!router.push( name: 'user-id', params: id)// Great!router.push('/ consumer/$ id/ jewel')// Error!For resolved options, the params building will be actually available and properly keyed in.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Really good!