Typescript [vue-3] - Type ToastPluginApi has no call signatures
dolbex opened this issue · 10 comments
dolbex commented
I'm submitting a ... (check one with "x")
[x ] Bug report => search github for a similar issue or PR before submitting
[ ] Feature request
[ ] Other, please describe
Tell about your platform
- Vue.js version : 3.2.33
- Browser name and version : Chrome 101
- This package version : 3.0.2
Current behavior
We are getting an odd error with typescript enabled
This expression is not callable.
Type 'ToastPluginApi' has no call signatures.ts(2349)
Expected behavior
Um... not that? ¯_(ツ)_/¯
ankurk91 commented
I am not a TS expert, need help from community
dolbex commented
lol, neither am I sir. Certainly appreciate anyone's guidance on this one.
Macavity commented
Thank you for reporting @dolbex. Can you show how you imported useToast and ToastPluginAPI?
ankurk91 commented
I have released a new version with a fix.
Please update the package to 3.0.3 and let me know if it is fixed.
Macavity commented
Creating a PR right now ;-)
dolbex commented
Thanks so much for working on this so quickly! Much appreciated!