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
Create a prop with a conditional type where on of the types has an additional property
Check for these conditional types in a variable
Add two elements with v-if that access the additional property. On of them filters the correct type directly in the template and one does it through the previously created variable.
One of them should throw an "Property x does not exist on type [...]" error
What is expected?
Conditional types should be working even when I'm using a variable to check them.
What is actually happening?
Conditional types are only detected correctly if I do everything in the template.
Vue - Official extension or vue-tsc version
v2.0.28
VSCode version
1.92.0
Vue version
3.4.36
TypeScript version
5.5.4
System Info
Steps to reproduce
What is expected?
Conditional types should be working even when I'm using a variable to check them.
What is actually happening?
Conditional types are only detected correctly if I do everything in the template.
Link to minimal reproduction
No response
Any additional comments?
The text was updated successfully, but these errors were encountered: