npm version npm downloads npm downloads
- Supports all programmatic navigation utils (
NuxtLink,useRouter,navigateTo,useRoute,useLocalePath, etc...) - Supports optional params and catchAll routes
- Autocompletes routes paths, names and params
- Throw error if route path is invalid
- Out of the box
i18nsupport - Supports routes extended by config and modules
Demo repo 🧪 : nuxt-typed-router-demo
- Nuxt 3
- Nuxt 4
npx nuxi@latest module add typed-router
Register the module in the nuxt.config.ts, done!
export default defineNuxtConfig({ modules: ['nuxt-typed-router'], });
- Clone this repository
- Install dependencies using
pnpm - Build project for local tests
pnpm run test - Start dev playground
pnpm run prepack && pnpm run dev - Build project for deploy
pnpm prepack