Skip to content
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

Issue with slot typing using function signature #10376

Open
Kondziii opened this issue Feb 21, 2024 · 1 comment
Open

Issue with slot typing using function signature #10376

Kondziii opened this issue Feb 21, 2024 · 1 comment

Comments

@Kondziii
Copy link

Vue version

3.4.19

Link to minimal reproduction

https://github.com/Kondziii/vue-hello

Steps to reproduce

  1. Open App.vue file where I defined two components using defineComponent method
  2. In template when you mouse over slot you will see correct typing only in case of the second component
    image
    image

What is expected?

I expect to get correct type interference in both cases

What is actually happening?

The slot types are not working with components declared using "Function Signature"

System Info

No response

Any additional comments?

No response

@pikax
Copy link
Member

pikax commented Feb 28, 2024

This looks to be a dupe of #9649

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants