-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Suspected TypeScript bug when globally registering component that uses script tag generics with defineModel #4822
Labels
bug
Something isn't working
Comments
Same problem here. I have component who works fine and I move all models usage using
The problem seems to come from the |
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
2.1.6
VSCode version
1.93.0
Vue version
3.5.3
TypeScript version
5.5.3
System Info
package.json dependencies
Steps to reproduce
Main.ts
HelloWorld.vue
What is expected?
The SFC internally is type safe and should allow for usage of generics when using defineModel.
What is actually happening?
Link to minimal reproduction
No response
Any additional comments?
I at least suspect this is an issue with vue-tsc. I can't reproduce with Vue SFC Playground as I don't have access to the main typescript file.
The text was updated successfully, but these errors were encountered: