ํ๋ก์ ํธ
GitHub์์ ๋ณด๊ธฐ
victorgarciaesgi/nuxt-typed-router
์๊ฐ
๐ฆNuxt ๋ผ์ฐํฐ์ ์๋ ์์ฑ๊ณผ ํ์ ๊ฒ์ฌ๋ฅผ ์ ๊ณตํฉ๋๋ค.
์น ๋ฐ ์ฑ ๊ฐ๋ฐ์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- ๊ธฐ๋ก ์์ง ์ค
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
README.md
Original
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
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ
