Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🚦Provide autocompletion and typecheck to Nuxt router

License

NotificationsYou must be signed in to change notification settings

victorgarciaesgi/nuxt-typed-router

Repository files navigation

nuxt-typed-router cover

npm versionnpm downloadsnpm downloads

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 boxi18n support
  • Supports routes extended by config and modules



Documentation

Documentation

Play with it

Open in StackBlitz

Demo repo 🧪 :nuxt-typed-router-demo

Used by

Malt logo

Cool video about it from LearnVue

Watch the video

Compatibility:

  • Nuxt 3

Install

npx nuxi@latest module add typed-router

Configuration

Register the module in thenuxt.config.ts, done!

exportdefaultdefineNuxtConfig({modules:['nuxt-typed-router'],});

Development

  1. Clone this repository
  2. Install dependencies usingpnpm
  3. Build project for local testspnpm run test
  4. Start dev playgroundpnpm run prepack && pnpm run dev
  5. Build project for deploypnpm prepack

📑 License

MIT License


[8]ページ先頭

©2009-2025 Movatter.jp