nandi95 / vue-toastify

🔥 Simple, extendable, dependency free notification plugin. 🔥
https://vue-toastify.netlify.com/
MIT License
227 stars 12 forks source link

Property '$vToastify' does not exist on type 'App' #21

Closed piotr-placzek closed 3 years ago

piotr-placzek commented 4 years ago
// @/vue-toastify.d.ts
declare module 'vue-toastify';
// @/vtoastify.d.ts
import VueToastify from "vue-toastify";

declare module 'vue/types/vue' {
  interface Vue {
    $vToastify: VueToastify;
  }
}

It would be great to have this declarations inside the package.

nandi95 commented 4 years ago

Can you perhaps PR this? I will only add Typescript in the next major version

nandi95 commented 3 years ago

I would be open for a PR that contributes a declarations file. Or perhaps an addition to DefinetelyTyped. Otherwise closing this due to inactivity.