Closed PFacheris closed 2 years ago
i have the same problem with the typescript defintions missing the vue interface change. would be nice if this pr could be merged. now i have to workaround it by importing the vue.d.ts with an own d.t.s file in my project. import "vue-wait/src/types/vue";
i see now that we only need this typescript import for vue2, not sure if it breaks anything with vue3. maybe this is the reason why its not merged. would need testing.
If anything is broken we can fix. Merged.
With the following
main.ts
file in a Vue app:I was experiencing this error:
My tsconfig.json looks like:
By adding this import the error no longer occurs. I observed this pattern in the vuetify library https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/types/index.d.ts and believe this is the correct fix though I'm not super experienced with Typescript so an update to my tsconfig may be all that's required.