-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Incorrect type inferring with generic components and withDefaults #8325
Comments
This is work as intended For example: function someFunction<T extends string>(
sameModel: T = 'sameModel default'
) {
}
So withDefaults should throw a error for this, also. |
duplicated to #8310 |
if i change define props to
its stil throws error
|
@grindpride This is another error. duplicated to #8331 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Vue version
3.3.2
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-nwkbil?file=src/components/ListGeneric.vue
Steps to reproduce
Steps to reproduce
npm run typecheck
into the terminalListGeneric.vue
fileWhat is expected?
There is no error occurred
What is actually happening?
TS error
System Info
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: