shakee93 / vue-toasted

🖖 Responsive Touch Compatible Toast plugin for VueJS 2+
https://shakee93.github.io/vue-toasted/
MIT License
2.21k stars 194 forks source link

Argument of type 'ToastObject' is not assignable to parameter of type '(value: any) => any'. #138

Closed darthf1 closed 4 years ago

darthf1 commented 5 years ago

Hi!

Using Toast with Nuxt (and the corresponding module) and Typescript, I've got the following code:

this.$toast.success('ok')

This gives me the following message in PHPStorm:

Error:(196, 81) TS2345: Argument of type 'ToastObject' is not assignable to parameter of type '(value: any) => any'.
  Type 'ToastObject' provides no match for the signature '(value: any): any'.

Got any idea?