-
Notifications
You must be signed in to change notification settings - Fork 668
TypeScript: typing error with props and attributes #432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm trying to fix it. https://github.com/vwxyutarooo/vue-test-utils/blob/dev/types/index.d.ts#L52 |
@vwxyutarooo You can send PR :) |
@kazupon Thanks, I've create it! |
eddyerburgh
pushed a commit
that referenced
this issue
Feb 16, 2018
* test: add attributes() and props() to type test * fix: type props and attributes in BaseWrapper #432
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
1.0.0-beta.11
Reproduction link
https://github.com/vwxyutarooo/vue-test-utils/blob/dev/types/test/wrapper.ts#L19
Steps to reproduce
Use
wrapper.props().checked
orwrapper.attributes().foo
in TypeScript.What is expected?
interface BaseWrapper
issue.What is actually happening?
void
is unnecessary I suppose. This method always returns any type of data including undefined. Is it my misunderstanding or just bug?Environments for just in case.
The text was updated successfully, but these errors were encountered: