プロジェクト
GitHubで見る
victorgarciaesgi/nuxt-typed-router
概要
🚦Nuxt のルーターに自動補完と型チェックを提供します。
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- -1
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル
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
関連プロジェクトを探す
読み込み中…
