-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
vue-tsc failed to infer generic types of custom directives within templates #4682
Comments
This is a possible improvement. I thought of some methods, but was stuck on why TypeScript can't resolve types like |
@KermanX In the example you provided, It seems that type annotation has no effect in this case: However, |
Thanks a lot! Adding |
Reported at: microsoft/TypeScript#59626 |
Vue - Official extension or vue-tsc version
Same as playground
Vue version
3.5.0-beta.1
TypeScript version
5.6.0-beta
System Info
No response
Steps to reproduce
What is expected?
vue-tsc should infer the type of T correctly in the template.
What is actually happening?
Link to minimal reproduction
Playground link
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: