Home
Softono

Nuxt Typed Router

Open source MIT TypeScript
413
Stars
15
Forks
11
Issues
1
Watchers
6 months
Last Commit

 About Nuxt Typed Router

🚦Provide autocompletion and typecheck to Nuxt router

Platforms

Web Self-hosted

Languages

TypeScript

Need Help Installing Nuxt Typed Router?

We provide expert installation service for this software. Our team will install, configure, and secure Nuxt Typed Router on your server. plans start at just $30.

Nuxt Typed Router

View on GitHub

nuxt-typed-router cover

npm version npm downloads npm 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 box i18n 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
  • 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

  1. Clone this repository
  2. Install dependencies using pnpm
  3. Build project for local tests pnpm run test
  4. Start dev playground pnpm run prepack && pnpm run dev
  5. Build project for deploy pnpm prepack

📑 License

MIT License