nuxt-typed-router 3.1.1 → 3.1.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/dist/module.json +1 -1
- package/dist/module.mjs +3 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -662,7 +662,8 @@ function createIndexFile() {
|
|
|
662
662
|
)}
|
|
663
663
|
${returnIfTrue(
|
|
664
664
|
i18n,
|
|
665
|
-
`export {useLocalePath, useLocaleRoute
|
|
665
|
+
`export {useLocalePath, useLocaleRoute} from './__i18n-router';
|
|
666
|
+
export type {TypedToLocalePath, TypedLocaleRoute} from './__i18n-router';`
|
|
666
667
|
)}
|
|
667
668
|
|
|
668
669
|
|
|
@@ -1681,7 +1682,7 @@ async function removeNuxtDefinitions({
|
|
|
1681
1682
|
}
|
|
1682
1683
|
if (autoImport) {
|
|
1683
1684
|
const importsFilePath = resolve(buildDir, "types/imports.d.ts");
|
|
1684
|
-
if (importsFilePath) {
|
|
1685
|
+
if (existsSync(importsFilePath)) {
|
|
1685
1686
|
let globalDefinitions = await readFile(importsFilePath, {
|
|
1686
1687
|
encoding: "utf8"
|
|
1687
1688
|
});
|