项目
在 GitHub 查看
victorgarciaesgi/nuxt-typed-router
关于
🚦为 Nuxt 路由器提供自动补全和类型检查。
网站与应用开发实测星标增长
- 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
探索相关项目
加载中…
