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 +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
# Documentation
|
|
37
37
|
|
|
38
|
-
[](https://nuxt-typed-router.vercel.app/)
|
|
39
39
|
|
|
40
40
|
# Play with it
|
|
41
41
|
[](https://stackblitz.com/edit/github-7e4xvw?file=store/testRouter.ts)
|
package/dist/module.json
CHANGED
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
|
*
|