You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: If you were to actually implement this signature using typescript, you can't (because of 2 methods with the same name, but different signatures). You could cast the right hand side to any though, and it will work.
The text was updated successfully, but these errors were encountered:
https://github.com/vuejs/vue-test-utils/blob/dev/packages/test-utils/types/index.d.ts#L107
Version
1.0.0-beta.24
Steps to reproduce
What is expected?
wrapper.emitted('click')[0][0];
should have signatureany
.What is actually happening?
It has signature
any[]
.The fix would be 2 method signatures:
https://jsfiddle.net/1b68eLdr/55727/
This would make typescript happy.
Note: If you were to actually implement this signature using typescript, you can't (because of 2 methods with the same name, but different signatures). You could cast the right hand side to
any
though, and it will work.The text was updated successfully, but these errors were encountered: