nuxt-typed-router 2.1.0-beta.1 → 2.1.0-beta.2

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.
package/README.md CHANGED
@@ -35,7 +35,7 @@
35
35
 
36
36
  # Documentation
37
37
 
38
- [![Open in StackBlitz](https://github.com/victorgarciaesgi/nuxt-typed-router/blob/master/.github/images/redirectDoc.svg?raw=true)](https://nuxt-typed-router.vercel.app/)
38
+ [![Documentation](https://github.com/victorgarciaesgi/nuxt-typed-router/blob/master/.github/images/redirectDoc.svg?raw=true)](https://nuxt-typed-router.vercel.app/)
39
39
 
40
40
  # Play with it
41
41
  [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/github-7e4xvw?file=store/testRouter.ts)
package/dist/module.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "nuxt": "^3.0.0-rc.1",
6
6
  "bridge": false
7
7
  },
8
- "version": "2.1.0-beta.1"
8
+ "version": "2.1.0-beta.2"
9
9
  }
package/dist/module.mjs CHANGED
@@ -282,7 +282,7 @@ function createUseTypedRouteFile(routesDeclTemplate) {
282
282
  return `
283
283
  ${watermarkTemplate}
284
284
  import { useRoute } from '#app';
285
- import { TypedRouteList } from './__routes';
285
+ import type { TypedRouteList } from './__routes';
286
286
 
287
287
  /** Acts the same as \`useRoute\`, but typed.
288
288
  *
@@ -321,7 +321,7 @@ function createRuntimeUseTypedRouterFile(routesDeclTemplate) {
321
321
  return `
322
322
  ${watermarkTemplate}
323
323
  import { useRouter } from '#app';
324
- import { TypedRouter } from './typed-router';
324
+ import type { TypedRouter } from './typed-router';
325
325
 
326
326
  /** Returns instances of $typedRouter and $routesList fully typed to use in your components or your Vuex/Pinia store
327
327
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-typed-router",
3
- "version": "2.1.0-beta.1",
3
+ "version": "2.1.0-beta.2",
4
4
  "description": "Provide autocompletion for pages route names generated by Nuxt router",
5
5
  "type": "module",
6
6
  "main": "./dist/module.cjs",