or.npm install -D nuxt-typed-router@legacy.Setup.Register the element in the nuxt.config.ts, done!export default defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When an option has no params defined, the params home will not also be actually offered as a possibility in the hub.router.push('/ login/bar')// Error!router.push( title: 'login', params: foo: 'pub')// Mistake!router.push(" https://vuejsfeed.com/login")// Good!router.push( title: 'login')// Excellent!pages/user/ [id] vue.When a route has actually a required param defined, navigating precisely to this route will throw a mistake if you do not supply a params property or even if you put an inappropriate param.router.push( name: 'user-id')// Inaccuracy!router.push( label: 'user-id', params: club: 'baz')// Inaccuracy!router.push('/ customer')// Mistake!const id="ey7878".router.push('/ user/$ i.d. ')// Great!router.push( title: 'user-id', params: i.d.)// Great!router.push('/ individual/$ id/ baguette')// Mistake!For addressed paths, the params home will be actually accessible and also correctly keyed.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Good!