From dd7d77b0eb36573d3bad5e2110bec5e8513bb39c Mon Sep 17 00:00:00 2001 From: mediv0 Date: Sat, 22 May 2021 10:27:26 +0430 Subject: [PATCH] refactor: import Plugin interface from vue-demi --- src/index.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index d0195f6..feb40a6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,13 +1,16 @@ -import { Plugin } from "@vue/runtime-core"; +import { Plugin } from "vue-demi"; + import * as components from "./modules/index"; -const install: Plugin = Vue => { - Object.values(components).forEach(cmp => { - Vue.component(cmp.name, cmp); - }); +const plugin: Plugin = { + install(Vue) { + Object.values(components).forEach(cmp => { + Vue.component(cmp.name, cmp); + }); + } }; -export default install; +export default plugin; // export components export { default as isPersian } from "./modules/isPersian";