CyberNika / v-contextmenu

🖱 ContextMenu based on Vue 3 & Vue 2
https://cybernika.github.io/v-contextmenu/
MIT License
918 stars 112 forks source link

Need .d.ts file #104

Open D1N910 opened 3 years ago

D1N910 commented 3 years ago

tips:

Could not find a declaration file for module 'v-contextmenu'.

FifthGently commented 3 years ago

I need it, too

crystalfp commented 2 years ago

I have put a types.d.ts file containing only declare module 'v-contextmenu'; in node_modules/v-contextmenu and the same file alongside main.ts but named v-contextmenu.d.ts. Strange. But for me the first one is needed for vue ui serve, and the second one to have VS Code not complaining when import contextmenu from "v-contextmenu";. An official solution is badly needed. I use Vue 3 on windows.

CyberNika commented 9 months ago

you can try v3.1.0 version which includes d.ts files and new es outputs.