@nuxt/docs-nightly 5.0.0-29559637.844de7ba → 5.0.0-29559671.1ce1ecc4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -366,7 +366,7 @@ export default defineNuxtConfig({
|
|
|
366
366
|
|
|
367
367
|
## typedPages
|
|
368
368
|
|
|
369
|
-
Enable the new experimental typed router
|
|
369
|
+
Enable the new experimental typed router.
|
|
370
370
|
|
|
371
371
|
```ts twoslash [nuxt.config.ts]
|
|
372
372
|
export default defineNuxtConfig({
|
|
@@ -380,14 +380,6 @@ Out of the box, this will enable typed usage of [`navigateTo`](/docs/4.x/api/uti
|
|
|
380
380
|
|
|
381
381
|
You can even get typed params within a page by using `const route = useRoute('route-name')`.
|
|
382
382
|
|
|
383
|
-
::important
|
|
384
|
-
If you use `pnpm` without `shamefully-hoist=true`, you will need to add `unplugin-vue-router` as a hoist pattern in your `pnpm-workspace.yaml` in order for this feature to work.
|
|
385
|
-
```yaml
|
|
386
|
-
publicHoistPattern:
|
|
387
|
-
- "unplugin-vue-router"
|
|
388
|
-
```
|
|
389
|
-
::
|
|
390
|
-
|
|
391
383
|
:video-accordion{title="Watch a video from Daniel Roe explaining type-safe routing in Nuxt" videoId="SXk-L19gTZk"}
|
|
392
384
|
|
|
393
385
|
## watcher
|