From 4f85b22c302955788cfc41aa738bc9a3b09ca68a Mon Sep 17 00:00:00 2001 From: winixt Date: Thu, 29 Sep 2022 15:18:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20runtime=20=E6=B7=BB=E5=8A=A0=20d.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-runtime/package.json | 5 +++-- packages/fes-runtime/types.d.ts | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 packages/fes-runtime/types.d.ts 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'; +}