From 74c30376a5885ceceb6e820fb7053b95d42c36a3 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Wed, 8 Dec 2021 17:40:41 +0100 Subject: [PATCH] refactor(types): use vite-plugin-import-types Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com> --- package.json | 5 +-- src/container/VueFlow/VueFlow.vue | 55 +------------------------------ src/types/components.ts | 47 ++------------------------ src/types/flow.ts | 13 ++++++-- src/types/node.ts | 3 -- src/types/store.ts | 4 ++- src/utils/graph.ts | 2 +- src/utils/node.ts | 2 +- vite.config.ts | 2 ++ yarn.lock | 9 +++-- 10 files changed, 31 insertions(+), 111 deletions(-) diff --git a/package.json b/package.json index 4e851533..93413b94 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "@rollup/plugin-replace": "^2.4.2", "@types/dagre": "^0.7.46", "@vitejs/plugin-vue": "^1.9.3", - "@vue/compiler-sfc": "^3.2.22", + "@vue/compiler-sfc": "3.2.22", "autoprefixer": "^10.3.7", "cypress": "8.5.0", "dagre": "^0.8.5", @@ -67,8 +67,9 @@ "typescript-transform-paths": "^3.3.1", "unplugin-auto-import": "^0.4.12", "vite": "2.5.x", + "vite-plugin-vue-type-imports": "^0.1.2", "vite-svg-loader": "^2.2.0", - "vue": "^3.2.22", + "vue": "3.2.22", "vue-router": "^4.0.12", "vue-tsc": "^0.29.5" }, diff --git a/src/container/VueFlow/VueFlow.vue b/src/container/VueFlow/VueFlow.vue index 07b92a9e..8af73d9d 100644 --- a/src/container/VueFlow/VueFlow.vue +++ b/src/container/VueFlow/VueFlow.vue @@ -1,17 +1,4 @@