renoguyon / vuejs-noty

A Vue JS wrapper around Noty
156 stars 29 forks source link

Global var $noty in typescript? #13

Open lambrohan opened 4 years ago

renoguyon commented 4 years ago

Hi @lambrohan,

As a quickfix, you can create a file vue-noty.d.ts in your project and put this content:

declare module 'vue/types/vue' {
  interface VueConstructor {
    noty: any;
  }

  interface Vue {
    $noty: any;
  }
}

Hope this helps!