diff --git a/packages/fes-runtime/package.json b/packages/fes-runtime/package.json index 03837603..5c759d46 100644 --- a/packages/fes-runtime/package.json +++ b/packages/fes-runtime/package.json @@ -31,5 +31,6 @@ }, "dependencies": { "vue-router": "^4.0.1" - } -} + }, + "typings": "./types.d.ts" +} \ No newline at end of file diff --git a/packages/fes-runtime/types.d.ts b/packages/fes-runtime/types.d.ts new file mode 100644 index 00000000..4c906b33 --- /dev/null +++ b/packages/fes-runtime/types.d.ts @@ -0,0 +1,19 @@ + + +declare module "@fesjs/fes" { + export { + useRoute, + useRouter, + onBeforeRouteUpdate, + onBeforeRouteLeave, + RouterLink, + RouterView, + useLink, + createWebHashHistory, + createWebHistory, + createMemoryHistory, + createRouter, + } from 'vue-router'; + + export { default as Plugin, ApplyPluginsType } from './plugin'; +}