-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
useTemplateRefs falsely returns boolean #4826
Labels
bug
Something isn't working
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vue - Official extension or vue-tsc version
v2.1.6
VSCode version
1.89.1
Vue version
3.5.3
TypeScript version
Not installed. When I create and open a .ts file and run
TypeScript: Select TypeScript Version...
, I get offered 5.4.5. Not sure if this is what you're asking for since it wasn't retrievable without the ts file.System Info
package.json dependencies
Steps to reproduce
I pasted the official example from https://vuejs.org/guide/essentials/template-refs.html#accessing-the-refs ("Accessing the refs") into VSCode;
What is expected?
No error
What is actually happening?
Property 'value' does not exist on type 'boolean'.
becauseinput
is in fact shown as boolean.Link to minimal reproduction
No response
Any additional comments?
The sample is not using
lang="ts"
and the link saysSo I guess for some reason it could be expected that things don't work perfectly (it would be great if you could clarify that), but type
boolean
surely is a bug here?! I also don't understand where it comes from as hovering overuseTemplateRefs
reveals aReadonly<ShallowRef>
return type.The text was updated successfully, but these errors were encountered: