-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Types of generic parameters in components defined with defineComponent
are always unknown
#3745
Labels
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
Comments
so1ve
added
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
labels
Nov 21, 2023
Should be fixed with Vue 3.4.20. |
so1ve
added
upstream
and removed
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
labels
Feb 27, 2024
This is not really fixed: Playground <template>
<CompSetup :msg="123" :list="['123']" />
<!-- Displays an error saying that `'string' is not assignable to 'number'` -->
<CompDefine :msg="123" :list="['123']" />
<!-- Displays no errors, when hovering over `:msg` and `:list` displays types `number` and `string[]` respectively -->
</template> So, |
so1ve
added
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
and removed
upstream
labels
Feb 27, 2024
This looks like a bug in volar. I'll reopen this issue. |
This seems to have been fixed in the latest version. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
Playground reproduction
I have defined the same component using
<script setup>
anddefineComponent
:When using them,
CompSetup
automatically infers the types of arguments, howeverCompDefine
does not:The text was updated successfully, but these errors were encountered: