-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typescript @types issue #37
Comments
@hovorun can you show me how you're importing the lib? And its component usage? |
maybe you can refer to DefinitelyTyped, i hope it can run in typescript |
At the moment:
So if you use typescript for your vue project, these package should be treated with an any type. It removes errors but does not provide safety. I use a stub of it in my declare module "vue-dndrop" {
const Container: any
const Draggable: any
export {
Container,
Draggable
}
} |
I have the same issue (typescript'd Vue 2 app) and it's a simple module import in my
Using @Lyokolux removes the errors and allows a build. It would be nice to have TS support, but I understand not everyone wants to do that :) |
Hey you can try this @philiprenich @Lyokolux @amendx @hovorun @xyhxx
|
When installing the library in my Vue application, I get the next error
Cannot resolve definitions for module 'vue-dndrop'
seems like it's missing types declaration, can it be solved somehow? Thanks in advanceThe text was updated successfully, but these errors were encountered: