Closed bigmeow closed 3 years ago
Just write like this👇
declare module 'vue-draggable-next';
My temporary solution is:
// shims-vue.d.ts declare module "*.vue" { import { defineComponent } from "vue"; const component: ReturnType<typeof defineComponent>; export default component; } // add declare module "vue-draggable-next" { export { VueDraggableNext } from "vue-draggable-next/dist/src/index"; }
reply 👀
@bigmeow is something I have it on my plan for timing just use declare module 'vue-draggable-next'
@anish2690 I think it should be specified in the types field of package.json to avoid error reporting.
I want it to be recognized automatically instead of writing any code
https://github.com/anish2690/vue-draggable-next/pull/4 added support for type definition
My temporary solution is: