Subscribe on changes!

Issue with slot typing using function signature

avatar
Feb 21st 2024

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

avatar
Feb 28th 2024

This looks to be a dupe of https://github.com/vuejs/core/issues/9649