nuxt-typed-router
Provide a type safe router to Nuxt
- 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
Documentation
Play with it
Demo repo 🧪 : nuxt-typed-router-demo
Used by
Cool video about it from LearnVue
Compatibility:
- Nuxt 3
- Nuxt 4
Install
npx nuxi@latest module add typed-router
Configuration
Register the module in the nuxt.config.ts, done!
export default defineNuxtConfig({
modules: ['nuxt-typed-router'],
});
Development
- 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
📑 License
Related Packages
nuxt3-delacon
A Nuxt 3 module for integrating Delacon call tracking into your Nuxt 3 applicati...
1,658
0
@edgedev/firebase
Vue 3 / Nuxt 3 Plugin or Nuxt 3 plugin for firebase authentication and firestore...
28,471
2
Version History
| Version | Released | License |
|---|---|---|
| 4.0.11 | MIT | |
| 4.0.10 | MIT | |
| 4.0.9 | MIT | |
| 4.0.7 | MIT | |
| 4.0.6 | MIT | |
| 4.0.5 | MIT | |
| 4.0.4 | MIT | |
| 4.0.3 | MIT | |
| 4.0.2 | MIT | |
| 4.0.1 | MIT | |
| 3.8.0 | MIT | |
| 3.7.3 | MIT | |
| 3.7.2 | MIT | |
| 3.7.1 | MIT | |
| 3.7.0 | MIT | |
| 3.6.5 | MIT | |
| 3.6.4 | MIT | |
| 3.6.3 | MIT | |
| 3.6.2 | MIT | |
| 3.6.1 | MIT | |
| 3.6.0 | MIT | |
| 3.5.1 | MIT | |
| 3.5.0 | MIT | |
| 3.4.0 | MIT | |
| 3.3.3 | MIT | |
| 3.3.2 | MIT | |
| 3.3.1 | MIT | |
| 3.3.0 | MIT | |
| 3.2.6 | MIT | |
| 3.2.5 | MIT |
Showing the latest 30 of 131. See every release on npm
Pre-releases (94)
| Version | Released | License |
|---|---|---|
| 3.7.2-beta.1 | MIT | |
| 3.5.0-beta.3 | MIT | |
| 3.5.0-beta.2 | MIT | |
| 3.5.0-beta.1 | MIT | |
| 3.5.0-beta.0 | MIT | |
| 3.2.1-beta.0 | MIT | |
| 3.2.0-beta.0 | MIT | |
| 3.1.4-beta.0 | MIT | |
| 3.1.0-beta.1 | MIT | |
| 3.1.0-beta.0 | MIT | |
| 3.0.1-beta.1 | MIT | |
| 3.0.1-beta.0 | MIT | |
| 3.0.0-beta.10 | MIT | |
| 3.0.0-beta.9 | MIT | |
| 3.0.0-beta.8 | MIT | |
| 3.0.0-beta.7 | MIT | |
| 3.0.0-beta.6 | MIT | |
| 3.0.0-beta.5 | MIT | |
| 3.0.0-beta.4 | MIT | |
| 3.0.0-beta.3 | MIT | |
| 3.0.0-beta.2 | MIT | |
| 3.0.0-beta.1 | MIT | |
| 3.0.0-beta.0 | MIT | |
| 2.3.4-beta.0 | MIT | |
| 2.3.0-beta.0 | MIT | |
| 2.2.2-beta.2 | MIT | |
| 2.2.2-beta.1 | MIT | |
| 2.2.2-beta.0 | MIT | |
| 2.2.0-beta.0 | MIT | |
| 2.1.2-beta.0 | MIT |
Showing the latest 30 of 94. See every release on npm
