nuxt-typed-router 1.2.1 → 1.2.3
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 +2 -6
- package/dist/module.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,10 +57,8 @@ npm install -D nuxt-typed-router@legacy
|
|
|
57
57
|
First, register the module in the `nuxt.config.ts`
|
|
58
58
|
|
|
59
59
|
```ts
|
|
60
|
-
import TypedRouter from 'nuxt-typed-router';
|
|
61
|
-
|
|
62
60
|
export default defineNuxtConfig({
|
|
63
|
-
buildModules: [
|
|
61
|
+
buildModules: ['nuxt-typed-router'],
|
|
64
62
|
nuxtTypedRouter: {
|
|
65
63
|
// options
|
|
66
64
|
},
|
|
@@ -101,10 +99,8 @@ The module will generate 4 files each time you modify the `pages` folder :
|
|
|
101
99
|
You can specify the output dir of the generated files in your configuration. It defaults to `<srcDir>/generated`
|
|
102
100
|
|
|
103
101
|
```ts
|
|
104
|
-
import TypedRouter from 'nuxt-typed-router';
|
|
105
|
-
|
|
106
102
|
export default defineNuxtConfig({
|
|
107
|
-
buildModules: [
|
|
103
|
+
buildModules: ['nuxt-typed-router'],
|
|
108
104
|
nuxtTypedRouter: {
|
|
109
105
|
outDir: './generated',
|
|
110
106
|
},
|
package/dist/module.json
CHANGED