-
Notifications
You must be signed in to change notification settings - Fork 246
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
Types for wrapper.vm when using child component #2058
Comments
I actually tested #972 with #2026 and seems that 2026 fixes 972.
And test with |
But if that compiles correctly then this is a regression in the types of |
Ofc time is undefined.. |
No worries. Your issue made me realize that we may have a regression in our typings as that should not compile. |
Describe the bug
If try to access a variable of an hook with a child component, the vue-tsc give an error. wrapper.vm does not have a stateForm property, because wrapper.vm is typed as ComponentPublicInstance.
To Reproduce
https://stackblitz.com/edit/vitest-dev-vitest-ztd6bn
Expected behavior
No error.
Related information:
See #972
Tested with #2026
Workaround
The text was updated successfully, but these errors were encountered: